From 635912a61b7a8eeb5baa8cb94b2f5dbb99958c75 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 19 Nov 2006 07:28:33 +0000 Subject: [PATCH] *** empty log message *** --- ase/test/awk/makefile.in | 2 +- ase/test/awk/regress.sh | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 ase/test/awk/regress.sh diff --git a/ase/test/awk/makefile.in b/ase/test/awk/makefile.in index dd6bb4cc..1c2c5ef8 100644 --- a/ase/test/awk/makefile.in +++ b/ase/test/awk/makefile.in @@ -9,7 +9,7 @@ LIBS = @LIBS@ -laseawk -lxpbas -lm all: awk awk: $(OBJS) - $(CC) -o awk awk.o $(LDFLAGS) $(LIBS) + $(CC) -o $@ awk.o $(LDFLAGS) $(LIBS) clean: rm -rf *.o awk diff --git a/ase/test/awk/regress.sh b/ase/test/awk/regress.sh new file mode 100755 index 00000000..2520aad0 --- /dev/null +++ b/ase/test/awk/regress.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +pid=$$ + +for script in emp???.awk +do + output=`echo $script | sed 's/\.awk$/.out/g'` + ./awk $script emp-en.data > "$output.$pid" + + diff $output "$output.$pid" + if [ $? -ne 0 ] + then + echo "###################################" + echo "PROBLEM(S) DETECTED IN $script.". + echo "###################################" + rm -f "$output.$pid" + break + fi + + rm -f "$output.$pid" +done