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