Codebase list firejail / d5b54ad
Split filters tests into isolation-machine test as they do not work well inside containers that already set up seccomp. Reiner Herrmann 4 years ago
3 changed file(s) with 31 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
00 Tests: simple-tests
11 Restrictions: allow-stderr, flaky
22 Depends: @, expect, file, sudo, procps, xzdec, cpio, less, strace, csh, zsh, man, iputils-ping, wget, x11-common
3
4 Tests: isolatoin-tests
5 Restrictions: allow-stderr, breaks-testbed, isolation-machine, needs-root, flaky
6 Depends: @, expect
37
48 Tests: application-tests
59 Restrictions: allow-stderr, isolation-machine, flaky
0 #!/bin/bash
1
2 LOGFILE="$AUTOPKGTEST_TMP/test.log"
3
4 sed -i 's/^\(restricted-network .*\)/#\1/' /etc/firejail/firejail.config
5 sed -i 's/^\(cgroup .*\)/#\1/' /etc/firejail/firejail.config
6
7 # copy tests to temporary directory, as current one might be read-only
8 cp -a test "$AUTOPKGTEST_TMP"
9 cd "$AUTOPKGTEST_TMP/test"
10
11 # run tests
12 for dir in filters
13 do
14 pushd $dir
15 bash -x ./$dir.sh | tee -a "$LOGFILE"
16 popd
17 done
18
19 echo "======================================"
20 grep "TESTING" "$LOGFILE"
21 echo "======================================"
22
23 [ $(grep -c "TESTING ERROR" "$LOGFILE") -gt 0 ] && exit 1
24
25 exit 0
99 cd "$AUTOPKGTEST_TMP/test"
1010
1111 # run tests
12 for dir in arguments environment fcopy filters fs profiles sysutils utils;
12 for dir in arguments environment fcopy fs profiles sysutils utils;
1313 do
1414 pushd $dir
1515 bash -x ./$dir.sh | tee -a "$LOGFILE"