aboutsummaryrefslogtreecommitdiff
path: root/lua/test.sh
diff options
context:
space:
mode:
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}