aboutsummaryrefslogtreecommitdiff
path: root/lua/test.sh
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-15 13:21:43 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-15 13:21:43 +0100
commitdc86e7658ab4608c334c4782b98909233ab393d0 (patch)
tree69e50ecd2d33ce5dd39b4193b7affd39bf950f43 /lua/test.sh
parent9e6b3f2e30a1ff46ec6bd05383668fe0ea20ed0b (diff)
downloadvis-dc86e7658ab4608c334c4782b98909233ab393d0.tar.gz
vis-dc86e7658ab4608c334c4782b98909233ab393d0.tar.xz
test/lua: make tests more robust, print Lua include paths
Diffstat (limited to 'lua/test.sh')
-rwxr-xr-xlua/test.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/lua/test.sh b/lua/test.sh
index fd2c088..5d9b865 100755
--- a/lua/test.sh
+++ b/lua/test.sh
@@ -6,16 +6,15 @@ $VIS -v
TESTS_OK=0
TESTS_RUN=0
-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
+ printf ':help\n:/ Lua paths/,$ w help\n:qall\n' | $VIS 2> /dev/null && cat help && rm -f help
test_files="$(find . -type f -name "*.in") basic_empty_file.in"
fi
+export VIS_PATH=.
+
for t in $test_files; do
TESTS_RUN=$((TESTS_RUN + 1))
t=${t%.in}