Improve autopkgtests
-
d/tests/foreign-cross-exe-wrapper: Make sure rc is initialized
If the first test happens to be successful (for example running an amd64 binary in an i386 environment that happens to be running on an amd64-capable kernel) then rc will be uninitialized, causing the script to fail due to the use of
set -u
.Helps: #1081799
-
d/tests/control: Skip testing foreign-cross-exe-wrapper if qemu fails
On ppc64el, qemu-i386 currently crashes with a segfault, and on s390x, qemu-arm64 (and possibly others) fails with:
qemu-arm64: /usr/bin/busybox: Invalid note in PT_GNU_PROPERTY
Neither of these is actually a cross-exe-wrapper bug.
Closes: #1081799 (when combined with previous commit)
-
d/tests: Install additional packages with --no-install-recommends
Otherwise we end up installing qemu-user-binfmt, which could make the tests pass for the wrong reasons.