#!/bin/sh set -eu namespace=SDL2_compat/ if [ -z "${HOME-}" ] || ! [ -w "${HOME}" ]; then export HOME="${AUTOPKGTEST_TMP}" fi export SDL_AUDIODRIVER=dummy export SDL_VIDEODRIVER=dummy export SDL2COMPAT_DEBUG_LOGGING=1 cd "$AUTOPKGTEST_TMP" if [ -z "$(ginsttest-runner -l "$namespace")" ]; then echo "Error: no installed-tests found matching $namespace" >&2 exit 1 fi failed=0 ginsttest-runner --tap "$namespace" || failed=1 # This one fails when we run the whole suite, but succeeds when run # individually: https://github.com/libsdl-org/sdl2-compat/issues/126. # Check that it doesn't get any worse. /usr/libexec/installed-tests/SDL2_compat/testautomation --filter video_getSetWindowGrab || failed=1 exit "$failed"