From dc86e7658ab4608c334c4782b98909233ab393d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 15 Nov 2016 13:21:43 +0100 Subject: test/lua: make tests more robust, print Lua include paths --- lua/test.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lua/test.sh') 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} -- cgit v1.2.3