summaryrefslogtreecommitdiff
path: root/test/run
blob: 56160977a3f0c56a3e289b36a9d870acc9b8b4e2 (plain)
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
#!/bin/bash

run_test() {
	$@
	[ $? -ne 0 ] && result=$((result+1))
}

result=0

# Run all tests that the standard sandbox build can support
run_test ./test/py/test.py --bd sandbox --build

# Run tests which require sandbox_spl
run_test ./test/py/test.py --bd sandbox_spl --build -k \
		test/py/tests/test_ofplatdata.py

# Run tests for the flat DT version of sandbox
./test/py/test.py --bd sandbox_flattree --build

if [ $result == 0 ]; then
	echo "Tests passed!"
else
	echo "Tests FAILED"
	exit 1
fi