diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2017-09-30 12:45:35 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2017-09-30 23:28:29 +0300 |
commit | 467948551a7ed784c206675eba2e29e034484ed1 (patch) | |
tree | 481e65e7874853040939a68b4721db4d785f81d6 /test.sh | |
parent | 65c82f54d6268c55b28ab3a3de088c859f7b88d1 (diff) | |
download | awall-467948551a7ed784c206675eba2e29e034484ed1.tar.bz2 awall-467948551a7ed784c206675eba2e29e034484ed1.tar.xz |
generate test policy: filter-limits
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 |