X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Frun_blackbox_tests.sh;fp=test%2Frun_blackbox_tests.sh;h=4bd9dd5ca6cbcf3de912c3a1fc3ba049384fd5dd;hb=dc68da94af8fca91748579c84ef5ed798db7efab;hp=0000000000000000000000000000000000000000;hpb=1a7277c64d74ae5ae18c48ebe09a522ffe7c696b;p=meshlink diff --git a/test/run_blackbox_tests.sh b/test/run_blackbox_tests.sh new file mode 100755 index 00000000..4bd9dd5c --- /dev/null +++ b/test/run_blackbox_tests.sh @@ -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