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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
#!/bin/bash
set -e
sed -i 's/"\.\."/"\/usr"/' test/testbabel.py
arch=$(dpkg --print-architecture)
fails=
for TEST in test/test*.py
do
fail_on_failure=true
case $TEST in
test/testroundtrip.py)
# timesout?
echo "Skipping ${TEST} ..."
continue;;
test/testdistgeom.py)
case "$arch" in amd64|armel)
# timesout on ci.d.n worker13
# takes very long on armel
echo "Skipping ${TEST} ..."
continue;;
esac;;
test/testbindings.py)
case "$arch" in
amd64)
true;;
*)
fail_on_failure=false;;
esac;;
test/testsym.py)
# on most/all non-amd64 architecture it fails
# if it finishes at all, it takes a very long time
# on worker13, the test takes 1000 times longer than on other amd64 hosts
echo "Skipping ${TEST} ..."
continue;;
test/testobconv_writers.py)
case "$arch" in arm64|i386|ppc64el|s390x)
fail_on_failure=false;;
esac;;
esac
echo "Running ${TEST} ..."
if python3 ${TEST}; then
:
else
if [ $fail_on_failure = "false" ] ; then
echo "Ignoring ${TEST} on $arch ..."
else
fails="$fails $TEST"
fi
fi
done
if [ -n "$fails" ]; then
echo "Failing tests: $fails"
exit 1
fi
exit 0
|