summaryrefslogtreecommitdiffstats
path: root/contrib/awk/test/regtest
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/awk/test/regtest')
-rwxr-xr-xcontrib/awk/test/regtest18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/awk/test/regtest b/contrib/awk/test/regtest
new file mode 100755
index 0000000..72b0dbf
--- /dev/null
+++ b/contrib/awk/test/regtest
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+case "$AWK" in
+"") AWK=../gawk ;;
+esac
+#AWK=${AWK:-../gawk}
+
+for i in reg/*.awk
+do
+ it=`basename $i .awk`
+ $AWK -f $i <reg/$it.in >reg/$it.out 2>&1
+ if cmp -s reg/$it.out reg/$it.good
+ then
+ rm -f reg/$it.out
+ else
+ echo "regtest: $it fails"
+ fi
+done
OpenPOWER on IntegriCloud