aboutsummaryrefslogtreecommitdiffstats
path: root/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/test.sh b/test.sh
index 2941733..41d867a 100755
--- a/test.sh
+++ b/test.sh
@@ -8,10 +8,14 @@
cd "$(dirname "$0")"
export LUA_PATH="./?.lua;;"
+LUA=lua${LUA_VERSION}
for cls in mandatory optional private; do
eval "export AWALL_PATH_$(echo $cls | tr a-z A-Z)=test/$cls"
mkdir -p test/$cls
+ for script in test/$cls/*.lua; do
+ [ -f "$script" ] && $LUA "$script" > "${script%.lua}.json"
+ done
done
-exec lua${LUA_VERSION} ./awall-cli ${1:-diff} -o test/output
+exec $LUA ./awall-cli ${1:-diff} -o test/output