home *** CD-ROM | disk | FTP | other *** search
/ MPEG Toolkit / MPEG Toolkit.iso / os2 / mpegenc / test / diffscri next >
Encoding:
Text File  |  1997-01-01  |  804 b   |  30 lines

  1. #
  2. # script to tell if two stat files are same except times
  3. #
  4. # NOTE:  if this script doesn't work, then basically all you need to know
  5. # is that the stat files should be the same except possibly for the times.
  6. # so the /tmp/blockbar below should be empty if the test succeeded, and non-
  7. # empty if it failed
  8. #
  9.  
  10. rm -f /tmp/foobar
  11. rm -f /tmp/blockbar
  12.  
  13. diff $1 $2 > /tmp/foobar
  14.  
  15. # /tmp/foobar must exist, since starting times will be different
  16.  
  17. egrep Blocks /tmp/foobar > /tmp/blockbar
  18.  
  19. # /tmp/blockbar may or may not exist
  20. if ( -z /tmp/blockbar ) then
  21.     diff $3 $4 > /tmp/foobar.mpg
  22.     if ( -z /tmp/foobar.mpg ) then
  23.         echo "SUCCESS."
  24.     else
  25.         echo "FAILURE! (different output -- probably endian bug).  Please send bug report."
  26.     endif
  27. else
  28.     echo "FAILURE! (different exection).  Please send bug report."
  29. endif
  30.