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
|
#!/bin/sh
set -eu
ARCH=$(dpkg --print-architecture)
if [ $ARCH = "amd64" ] || [ $ARCH = "arm64" ]; then
CAN_FAIL="no"
else
# other architectures can be flaky so allow failure
CAN_FAIL="yes"
fi
# avoid writing in home directory during test
# See Debian Bug #986665
export HOME="${AUTOPKGTEST_TMP}/home" \
export XDG_CONFIG_HOME="${AUTOPKGTEST_TMP}/config" \
export XDG_DATA_HOME="${AUTOPKGTEST_TMP}/data" \
export XDG_CACHE_HOME="${AUTOPKGTEST_TMP}/cache" \
# test names extracted from main/tests/test_main.cpp
# skip "physics", "physics_2d", "render", and "gui" as they seem to hang and/or
# use a lot of resources
# skip "gd_*" as they require a GDScript file as input
for test_name in string math basis transform oa_hash_map shaderlang crypto ordered_hash_map astar xml_parser theme
do
echo "Running test: ${test_name}"
godot3-server --test $test_name || [ $CAN_FAIL = "yes" ]
done
|