home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega Top 1
/
os2_top1.zip
/
os2_top1
/
APPS
/
TEKST
/
GREP20
/
TESTS
/
CHECK.CMD
next >
Wrap
OS/2 REXX Batch file
|
1993-10-15
|
505b
|
18 lines
@echo off
REM Regression test for GNU grep.
REM Usage: check [testdir]
set testdir=%1
if "%testdir%" == "" set testdir=.
if not exist %testdir%/khadafy.lines set testdir=%testdir%/tests
REM The Khadafy test is brought to you by Scott Anderson . . .
grep -E -f %testdir%/khadafy.regexp %testdir%/khadafy.lines > khadafy.out
diff -p %testdir%/khadafy.lines khadafy.out
if errorlevel 1 goto error
goto quit
:error
echo Khadafy test failed -- output left on khadafy.out
:quit
set testdir=