aboutsummaryrefslogtreecommitdiffstats
path: root/test.sh
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-05-31 14:04:50 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-05-31 21:37:09 +0300
commit3293b2093502a35441fcf67234089b1898943371 (patch)
tree465aeeea8f50e765c2690304a5d91d2858dc1c15 /test.sh
parentc3f53365a2edbf999154158c5e097e68b1d4f1fb (diff)
downloadawall-3293b2093502a35441fcf67234089b1898943371.tar.bz2
awall-3293b2093502a35441fcf67234089b1898943371.tar.xz
Makefile: check target
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..2941733
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+# Alpine Wall test script
+# Copyright (C) 2012-2017 Kaarle Ritvanen
+# See LICENSE file for license details
+
+
+cd "$(dirname "$0")"
+
+export LUA_PATH="./?.lua;;"
+
+for cls in mandatory optional private; do
+ eval "export AWALL_PATH_$(echo $cls | tr a-z A-Z)=test/$cls"
+ mkdir -p test/$cls
+done
+
+exec lua${LUA_VERSION} ./awall-cli ${1:-diff} -o test/output