3
# log all commands and abort on error
8
# unzip artifacts downloaded in the previous step
12
# run autopkgtests using the unpacked source and binary packages
13
env DEB_BUILD_OPTIONS="parallel="`nproc` \
14
adt-run archive/output/*.deb \
16
--source archive/output/*.dsc \
18
--summary output/summary \
21
--- schroot ${release}-${label##*-} \
24
mkdir -p output/artifacts
26
# if passed or no tests (see EXIT STATUS in man adt-run)
27
if [ -z "${ADT_EXIT}" ] || [ $ADT_EXIT -eq 8 ]; then
29
cat > output/artifacts/adt-run.xml <<EOF
30
<?xml version="1.0" encoding="UTF-8" ?>
31
<testsuite errors="0" failures="0" tests="1" name="adt-run">
32
<testcase result="${RESULT}" name="adt-run"/>
36
# everything else is unexpected
37
cat > output/artifacts/adt-run.xml <<EOF
38
<?xml version="1.0" encoding="UTF-8" ?>
39
<testsuite errors="0" failures="${FAILURES}" tests="1" name="adt-run">
40
<testcase result="${RESULT}" name="adt-run">
41
<failure message="adt-run exit code: ${ADT_EXIT}" result="${RESULT}"/>
47
# if skipped and/or failed, exit 0 to go UNSTABLE instead of FAILED
48
[ ${ADT_EXIT} -eq 2 -o ${ADT_EXIT} -eq 4 -o $ADT_EXIT -eq 6 ] && exit 0