From b83344491c35d52e73946bad752efe5fac9584c4 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 19 Feb 2007 15:55:41 +0000 Subject: [PATCH] *** empty log message *** --- ase/test/awk/err-001.out | 1 + ase/test/awk/err-en.data | 2 ++ ase/test/awk/regress.sh | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 ase/test/awk/err-001.out create mode 100644 ase/test/awk/err-en.data 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 }