aboutsummaryrefslogtreecommitdiffstats
path: root/test.sh
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-09-30 12:45:35 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-09-30 23:28:29 +0300
commit467948551a7ed784c206675eba2e29e034484ed1 (patch)
tree481e65e7874853040939a68b4721db4d785f81d6 /test.sh
parent65c82f54d6268c55b28ab3a3de088c859f7b88d1 (diff)
downloadawall-467948551a7ed784c206675eba2e29e034484ed1.tar.bz2
awall-467948551a7ed784c206675eba2e29e034484ed1.tar.xz
generate test policy: filter-limits
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