summaryrefslogtreecommitdiff
path: root/tests/run_script_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run_script_test.sh')
-rwxr-xr-xtests/run_script_test.sh18
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/run_script_test.sh b/tests/run_script_test.sh
index a6ccfa8..21c4e04 100755
--- a/tests/run_script_test.sh
+++ b/tests/run_script_test.sh
@@ -39,13 +39,25 @@ case $expected in
;;
esac
-"$1"
-check $?
+if [ -x "$1" ]
+then
+ "$1"
+ check $?
+fi
case "$ext" in
aplwc)
- aplwc "$1"
+ aplwc -x "$1"
check $?
+
+ if [ -f "$1.output" ]
+ then
+ aplwc -x "$1" 2>&1 | cmp - "$1.output"
+ if [ "$?" -ne 0 ]
+ then
+ exit 1
+ fi
+ fi
;;
esac