Add regression script for bugs-fixed directory.
This commit is contained in:
parent
ee5b49bb33
commit
b2554a9e3d
4
FIXES
4
FIXES
@ -25,6 +25,10 @@ THIS SOFTWARE.
|
||||
This file lists all bug fixes, changes, etc., made since the AWK book
|
||||
was sent to the printers in August, 1987.
|
||||
|
||||
July 2, 2020:
|
||||
Merge PRs 85 and 86 which fix regressions. Thanks to
|
||||
Tim van der Molen for the fixes.
|
||||
|
||||
June 25, 2020:
|
||||
Merge PRs 82 and 84. The latter fixes issue #83. Thanks to
|
||||
Todd Miller and awkfan77.
|
||||
|
28
bugs-fixed/REGRESS
Executable file
28
bugs-fixed/REGRESS
Executable file
@ -0,0 +1,28 @@
|
||||
#! /bin/bash
|
||||
|
||||
if [ ! -f ../a.out ]
|
||||
then
|
||||
echo Making executable
|
||||
(cd .. ; make) || exit 0
|
||||
fi
|
||||
|
||||
for i in *.awk
|
||||
do
|
||||
echo === $i
|
||||
OUT=${i%.awk}.OUT
|
||||
OK=${i%.awk}.ok
|
||||
IN=${i%.awk}.in
|
||||
input=
|
||||
if [ -f $IN ]
|
||||
then
|
||||
input=$IN
|
||||
fi
|
||||
|
||||
../a.out -f $i $input > $OUT 2>&1
|
||||
if cmp -s $OK $OUT
|
||||
then
|
||||
rm -f $OUT
|
||||
else
|
||||
echo ++++ $i failed!
|
||||
fi
|
||||
done
|
1
bugs-fixed/fs-overflow.ok
Normal file
1
bugs-fixed/fs-overflow.ok
Normal file
@ -0,0 +1 @@
|
||||
foo
|
@ -1,2 +1,2 @@
|
||||
./a.out: not enough args in printf(%*s)
|
||||
../a.out: not enough args in printf(%*s)
|
||||
source line number 1
|
||||
|
@ -1,2 +1,2 @@
|
||||
./a.out: cannot set NF to a negative value
|
||||
../a.out: cannot set NF to a negative value
|
||||
source line number 1
|
||||
|
Loading…
Reference in New Issue
Block a user