3 TEST_DESCRIPTION
="Run unit tests under containers"
4 RUN_IN_UNPRIVILEGED_CONTAINER
=yes
6 # embed some newlines in the kernel command line to stress our test suite
14 .
$TEST_BASE_DIR/test-functions
16 check_result_nspawn
() {
18 [[ -e $1/testok
]] && _ret
=0
19 if [[ -s $1/failed
]]; then
21 echo "=== Failed test log ==="
24 if [[ -s $1/skipped
]]; then
25 echo "=== Skipped test log =="
28 if [[ -s $1/testok
]]; then
29 echo "=== Passed tests ==="
33 save_journal
$1/var
/log
/journal
35 [[ -n "$TIMED_OUT" ]] && _ret
=$
(($_ret+1))
42 [[ -e $initdir/testok
]] && _ret
=0
43 if [[ -s $initdir/failed
]]; then
45 echo "=== Failed test log ==="
48 if [[ -s $initdir/skipped
]]; then
49 echo "=== Skipped test log =="
52 if [[ -s $initdir/testok
]]; then
53 echo "=== Passed tests ==="
57 save_journal
$initdir/var
/log
/journal
59 [[ -n "$TIMED_OUT" ]] && _ret
=$
(($_ret+1))