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 39
|
#!/bin/sh
set -eu
# Some build/test infrastructure provides internet access via a proxy.
# libostree doesn't always support no_proxy (and in any case
# reproducible-builds.org doesn't set it), so tests will try to use the
# proxy for localhost, and fail to reach the test server.
unset ftp_proxy
unset http_proxy
unset https_proxy
unset no_proxy
adverb=
case "$DEB_HOST_ARCH_CPU" in
(amd64|i386)
test_timeout_multiplier=3
;;
(*)
test_timeout_multiplier=20
;;
esac
if [ "$DEB_HOST_ARCH_BITS" = 64 ]; then
# reprotest sometimes uses linux32 even for x86_64 builds, and
# Flatpak's tests don't support this.
adverb=linux64
fi
e=0
$adverb dh_auto_test -- --timeout-multiplier "${test_timeout_multiplier}" || e=$?
echo "Killing gpg-agent processes:"
pgrep --list-full --full "gpg-agent --homedir /var/tmp/test-flatpak-.*" >&2 || :
pgrep --list-full --full "gpg-agent --homedir /var/tmp/flatpak-test-.*" >&2 || :
pkill --full "gpg-agent --homedir /var/tmp/test-flatpak-.*" >&2 || :
pkill --full "gpg-agent --homedir /var/tmp/flatpak-test-.*" >&2 || :
exit "$e"
|