File: runtests

package info (click to toggle)
booth 1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 852 kB
  • sloc: ansic: 7,181; sh: 2,166; python: 471; makefile: 280; xml: 7
file content (20 lines) | stat: -rwxr-xr-x 428 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# use boothd binary from the package
sed -i "s|boothd_path *=.*|boothd_path = '/usr/sbin/boothd'|" test/boothtestenv.py

# run tests
if [ "$(whoami)" = "root" ]; then
  su hacluster python3 test/runtests.py 2>&1
else
  python3 test/runtests.py 2>&1
fi
rc=$?

# store test files
test_dir=/tmp/booth-tests
if [ -d "$test_dir" -a -d "$AUTOPKGTEST_ARTIFACTS" ]; then
  cp -a $test_dir $AUTOPKGTEST_ARTIFACTS
fi

exit $rc