home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / GREP15.ZIP / REGRESS.SH < prev    next >
Linux/UNIX/POSIX Shell Script  |  1991-01-14  |  481b  |  27 lines

  1. #! /bin/sh -
  2.  
  3. failures=0
  4.  
  5. # The Khadafy test is brought to you by Scott Anderson . . .
  6. ../egrep -f khadafy.regexp khadafy.lines > khadafy.out
  7. if cmp khadafy.lines khadafy.out
  8. then
  9.     rm khadafy.out
  10. else
  11.     echo Khadafy test failed -- output left on khadafy.out
  12.     failures=1
  13. fi
  14.  
  15. # . . . and the following by Henry Spencer.
  16.  
  17. awk -F: -f scriptgen.awk spencer.tests > tmp.script
  18.  
  19. if sh tmp.script
  20. then
  21.     rm tmp.script
  22.     exit $failures
  23. else
  24.     rm tmp.script
  25.     exit 1
  26. fi
  27.