diff options
Diffstat (limited to 'debian/tests/vanilla')
-rwxr-xr-x | debian/tests/vanilla | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/tests/vanilla b/debian/tests/vanilla new file mode 100755 index 000000000..80304f4df --- /dev/null +++ b/debian/tests/vanilla @@ -0,0 +1,29 @@ +#!/bin/sh + +set -e + +echo "Checking service status right after install: " +# for transparency we want to see all status and then fail if one is inactive +systemctl status ovsdb-server.service || true +systemctl status ovs-vswitchd.service || true +systemctl status openvswitch-switch.service || true +systemctl is-active ovs-vswitchd.service ovsdb-server.service openvswitch-switch.service +echo "OK" + +echo "Checking daemon pids to exist: " +pgrep ovs-vswitchd +pgrep ovsdb-server +echo "OK" + +echo "stop conflicting openvswitch testcontroller" +systemctl stop openvswitch-testcontroller || true + +if dpkg --compare-versions "$(dpkg-query --showformat '${Version}\n' --show mininet)" ge "2.3.0-1"; then + PYCMD="python3" +else + PYCMD="python2" +fi + +printf "running openflow tests using mininet" +${PYCMD} `dirname $0`/openflow.py 2>&1 +echo "OK" |