diff options
Diffstat (limited to 'test.sh')
-rwxr-xr-x | test.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |