File: integration-tests

package info (click to toggle)
criu 4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,500 kB
  • sloc: ansic: 139,280; python: 7,484; sh: 3,824; java: 2,799; makefile: 2,659; asm: 1,137; perl: 206; xml: 117; exp: 45
file content (38 lines) | stat: -rwxr-xr-x 807 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
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash

set -ux

# Exclude some tests
EXCLUDES=" \
        -x apparmor_stacking \
        -x fd01 "
RESULT=0

run_test() {
        ./zdtm.py run --criu-bin=/usr/sbin/criu --crit-bin=/usr/bin/crit ${EXCLUDES} \
                --keep-going \
                -a

        RESULT=$?
}

# Cleanup test/pycriu directory
rm -fv -- test/pycriu

# Change directory to test directory
cd test

echo "Run the actual CRIU test suite"
run_test

if [ "$RESULT" -ne "0" ]; then
        # Run tests a second time to make sure it is a real failure
        echo "Something failed. Run the actual CRIU test suite a second time"
        run_test
        if [ "$RESULT" -ne "0" ]; then
                echo "Still a test suite error. Something seems to be actually broken"
                exit $RESULT
        fi
fi

exit 0