home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / GREP20 / TESTS / CHECK.CMD next >
OS/2 REXX Batch file  |  1993-10-15  |  505b  |  18 lines

  1. @echo off
  2. REM Regression test for GNU grep.
  3. REM Usage: check [testdir]
  4.  
  5. set testdir=%1
  6. if "%testdir%" == "" set testdir=.
  7. if not exist %testdir%/khadafy.lines set testdir=%testdir%/tests
  8.  
  9. REM The Khadafy test is brought to you by Scott Anderson . . .
  10. grep -E -f %testdir%/khadafy.regexp %testdir%/khadafy.lines > khadafy.out
  11. diff -p %testdir%/khadafy.lines khadafy.out
  12. if errorlevel 1 goto error 
  13. goto quit
  14. :error
  15. echo Khadafy test failed -- output left on khadafy.out
  16. :quit
  17. set testdir=
  18.