From 467948551a7ed784c206675eba2e29e034484ed1 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Sat, 30 Sep 2017 12:45:35 +0300 Subject: generate test policy: filter-limits --- test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test.sh') 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 -- cgit v1.2.3