Small fixes in the test suite.
This commit is contained in:
parent
b73bfabb42
commit
0e1bebcc09
@ -1,3 +1,9 @@
|
|||||||
|
2019-11-08 Arnold D. Robbins <arnold@skeeve.com>
|
||||||
|
|
||||||
|
* test/T.chem: Use $oldawk instead of hardwiring 'awk'.
|
||||||
|
* test/T.lilly: Remove gawk warnings from output, improves
|
||||||
|
portability.
|
||||||
|
|
||||||
2019-10-07 Arnold D. Robbins <arnold@skeeve.com>
|
2019-10-07 Arnold D. Robbins <arnold@skeeve.com>
|
||||||
|
|
||||||
* b.c (fnematch): Change type of pbuf from unsigned char to char.
|
* b.c (fnematch): Change type of pbuf from unsigned char to char.
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
echo T.chem: test chem.awk
|
echo T.chem: test chem.awk
|
||||||
|
|
||||||
awk=${awk-../a.out}
|
awk=${awk-../a.out}
|
||||||
|
oldawk=${oldawk-awk}
|
||||||
|
|
||||||
for i in lsd1.p penicil.p res.p
|
for i in lsd1.p penicil.p res.p
|
||||||
do
|
do
|
||||||
$awk -f chem.awk $i >foo1
|
$awk -f chem.awk $i >foo1
|
||||||
awk -f chem.awk $i >foo2
|
$oldawk -f chem.awk $i >foo2
|
||||||
diff foo1 foo2 || echo "BAD: T.chem on $i"
|
diff foo1 foo2 || echo "BAD: T.chem on $i"
|
||||||
done
|
done
|
||||||
|
@ -22,7 +22,7 @@ $awk '
|
|||||||
|
|
||||||
echo `cat lilly.progs | wc -l` tests
|
echo `cat lilly.progs | wc -l` tests
|
||||||
|
|
||||||
sed -e 's/awk://' -e 's/Syntax/syntax/' foo1 >glop1
|
sed -e 's/awk://' -e 's/Syntax/syntax/' -e '/warning:/d' foo1 >glop1
|
||||||
sed 's/..\/a.out://' foo2 >glop2
|
sed 's/..\/a.out://' foo2 >glop2
|
||||||
diff glop1 glop2 >lilly.diff || echo 'bad: T.lilly is different'
|
diff glop1 glop2 >lilly.diff || echo 'bad: T.lilly is different'
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user