Debian Codegraph @

debian/tests/system-test

raw
1 #!/bin/sh
2
3 # run upstream's integration tests
4
5 set -eux
6
7 . debian/tests/setup
8
9 ## env
10 TESTS_DIR="${APTLY_SRC_DIR}/system"
11
12 ## functions
13 disable_test() {
14 local file=${1}.py
15 local name=$2
16 local reason=$3
17
18 echo "${name}.skipTest = 'Debian autopkgtest: $reason'" >> ${TESTS_DIR}/${file}
19 }
20
21 ## main
22 export USER=root # for t07/RootDirInaccessible
23
24 disable_test t01_version/version VersionTest "version"
25 disable_test t02_config/config CreateConfigTest "different conf"
26 disable_test t04_mirror/create CreateMirror18Test "target repo down"
27 disable_test t04_mirror/create CreateMirror31Test "public key not found"
28 disable_test t04_mirror/create CreateMirror35Test "flaky on s390"
29 disable_test t07_serve/serve Serve1Test "minor html diff"
30 disable_test t09_repo/edit EditRepo4Test "flaky on riscv64"
31 disable_test t10_task/run RunTask1Test "version"
32 disable_test t12_api/docs TaskAPITestSwaggerDocs "no recent swag"
33 disable_test t12_api/gpg GPGAPITestAddKey "flaky on s390"
34 disable_test t12_api/unix_socket UnixSocketAPITest "type mismatch"
35 disable_test t12_api/version VersionAPITest "type mismatch"
36 disable_test t14_graph/graph CreateGraphTest "no viewer"
37 disable_test t14_graph/graph CreateGraphOutputTest "no viewer"
38
39 # etcd fixture is entirely arch-specific
40 rm -fr ${TESTS_DIR}/t13_etcd
41
42 make -C $APTLY_SRC_DIR system-test