aboutsummaryrefslogtreecommitdiff
path: root/lua/test.sh
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-13 22:36:12 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-13 22:36:12 +0100
commitf15b998595f0179d8e3719844c786f01aeb6fc3d (patch)
treeb71601d61f20910b94cf8e87757e7aea25e41c39 /lua/test.sh
parentb41bbbf323f422eb793e571221a9d37503627a34 (diff)
downloadvis-f15b998595f0179d8e3719844c786f01aeb6fc3d.tar.gz
vis-f15b998595f0179d8e3719844c786f01aeb6fc3d.tar.xz
test/lua: print :help output and distinguish between fail/error
Diffstat (limited to 'lua/test.sh')
-rwxr-xr-xlua/test.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/test.sh b/lua/test.sh
index 1455f3d..fd2c088 100755
--- a/lua/test.sh
+++ b/lua/test.sh
@@ -10,6 +10,7 @@ export VIS_PATH=.
export VIS_THEME=theme
if [ $# -gt 0 ]; then
+ printf ":help\n:w help\n:qall\n" $VIS && cat help
test_files=$*
else
test_files="$(find . -type f -name "*.in") basic_empty_file.in"
@@ -31,7 +32,7 @@ for t in $test_files; do
diff -u "$t".ref "$t".out > "$t".err
fi
else
- printf "FAIL\n"
+ printf "ERROR\n"
fi
done