| 1 | #!/bin/sh |
| 2 | |
| 3 | set -eu |
| 4 | |
| 5 | # tests must be run with binary in build output folder |
| 6 | # https://github.com/godotengine/godot/issues/97475#issuecomment-2376339183 |
| 7 | mkdir -p bin |
| 8 | cp /usr/bin/godot bin/ |
| 9 | |
| 10 | # avoid writing in home directory during test |
| 11 | # See Debian Bug #986665 |
| 12 | XDG_CONFIG_HOME="${AUTOPKGTEST_TMP}/config" \ |
| 13 | XDG_DATA_HOME="${AUTOPKGTEST_TMP}/data" \ |
| 14 | XDG_CACHE_HOME="${AUTOPKGTEST_TMP}/cache" \ |
| 15 | ./bin/godot --test |