File: upstream-test-suite

package info (click to toggle)
crun 1.26-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,356 kB
  • sloc: ansic: 70,844; python: 14,125; sh: 5,122; makefile: 928
file content (26 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (2)
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
#!/bin/sh
#
# Also see tests/Makefile.tests which does similar things to this script.

set -e

cp -a tests/ $AUTOPKGTEST_TMP/
cp build-aux/tap-driver.sh $AUTOPKGTEST_TMP/tests/
cd $AUTOPKGTEST_TMP/tests

mkdir \
  $AUTOPKGTEST_ARTIFACTS/rootless \
  $AUTOPKGTEST_ARTIFACTS/rootful

# disable sd-notify-proxy test: broken under autopkgtest for reasons yet unknown
sed -i '/sd-notify-proxy/d' test_start.py

echo "Running tests (rootless)..."
( rm -f *.log *.trs || true
trap "cp *.log $AUTOPKGTEST_ARTIFACTS/rootless" EXIT
OCI_RUNTIME=/usr/bin/crun INIT=./init ./run_all_tests.sh )
echo
echo "Running tests (rootful)..."
( rm -f *.log *.trs || true
trap "cp *.log $AUTOPKGTEST_ARTIFACTS/rootful" EXIT
sudo OCI_RUNTIME=/usr/bin/crun INIT=./init ./run_all_tests.sh )