[GENLINK] Add Test suite + simple test
This commit is contained in:
committed by
Piotr Esden-Tempski
parent
bfdc2cd991
commit
89236f0339
17
scripts/genlinktest.sh
Normal file
17
scripts/genlinktest.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
# run test
|
||||
PAAT=`basename $1`;
|
||||
awk -v PAT="$PAAT" -f scripts/genlink.awk $1.data > $1.out;
|
||||
|
||||
#check test
|
||||
if ! diff -q $1.out $1.result >/dev/null; then
|
||||
printf "FAILED\n";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
#remove workout only if it is OK
|
||||
rm -f $1.out
|
||||
|
||||
printf "OK\n";
|
||||
exit 0
|
||||
Reference in New Issue
Block a user