Debian Codegraph @

debian/tests/runtests

raw
1 #!/bin/sh
2
3 # use boothd binary from the package
4 sed -i "s|boothd_path *=.*|boothd_path = '/usr/sbin/boothd'|" test/boothtestenv.py
5
6 # run tests
7 if [ "$(whoami)" = "root" ]; then
8 su hacluster python3 test/runtests.py 2>&1
9 else
10 python3 test/runtests.py 2>&1
11 fi
12 rc=$?
13
14 # store test files
15 test_dir=/tmp/booth-tests
16 if [ -d "$test_dir" -a -d "$AUTOPKGTEST_ARTIFACTS" ]; then
17 cp -a $test_dir $AUTOPKGTEST_ARTIFACTS
18 fi
19
20 exit $rc