File: vanilla

package info (click to toggle)
openvswitch 3.6.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 99,632 kB
  • sloc: sh: 1,683,183; ansic: 313,349; python: 28,192; xml: 21,442; makefile: 549; javascript: 191
file content (29 lines) | stat: -rwxr-xr-x 833 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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"