]> git.meshlink.io Git - meshlink/blobdiff - test/run_blackbox_tests.sh
Add the blackbox container based test suite.
[meshlink] / test / run_blackbox_tests.sh
diff --git a/test/run_blackbox_tests.sh b/test/run_blackbox_tests.sh
new file mode 100755 (executable)
index 0000000..4bd9dd5
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+meshlinkrootpath=$(realpath ${0%/*}/..)
+host=$(hostname)
+lxcpath=$(lxc-config lxc.lxcpath)
+lxcbridge="lxcbr0"
+ethifname=$(ip route show default | awk '{print $5}' | head -1)
+arch=$(dpkg --print-architecture)
+
+test -f $HOME/.config/meshlink_blackbox.conf && . $HOME/.config/meshlink_blackbox.conf
+
+${0%/*}/blackbox/run_blackbox_tests/run_blackbox_tests ${meshlinkrootpath} ${lxcpath} ${lxcbridge} ${ethifname} ${arch} 2> run_blackbox_test_cases.log