diff --git a/ase/test/awk/err-001.out b/ase/test/awk/err-001.out new file mode 100644 index 00000000..8b4c838b --- /dev/null +++ b/ase/test/awk/err-001.out @@ -0,0 +1 @@ +ERROR: cannot parse program - line 2 [35] invalid character ' diff --git a/ase/test/awk/err-en.data b/ase/test/awk/err-en.data new file mode 100644 index 00000000..43684d80 --- /dev/null +++ b/ase/test/awk/err-en.data @@ -0,0 +1,2 @@ +data 1 +data 2 diff --git a/ase/test/awk/regress.sh b/ase/test/awk/regress.sh index ee44d722..c16b3183 100755 --- a/ase/test/awk/regress.sh +++ b/ase/test/awk/regress.sh @@ -20,6 +20,11 @@ run_init() do run_script_for_init "$script" "cou-en.data" done + + for script in err-???.awk + do + run_script_for_init "$script" "err-en.data" + done } run_script_for_test() @@ -83,6 +88,24 @@ run_test() fi done + for script in err-???.awk + do + run_script_for_test "$script" "err-en.data" + if [ $? -ne 0 ] + then + echo "###################################" + echo "PROBLEM(S) DETECTED IN $script.". + echo "###################################" + + echo "Do you want to abort? [y/n]" + read ans + if [ "$ans" = "y" -o "$ans" = "Y" ] + then + return 1 + fi + fi + done + return 0 }