From: Simon McVittie Date: Tue, 3 Jan 2023 10:22:42 +0000 (+0000) Subject: d/run-tests.sh: Use dh_auto_test X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c2bb208d2bad7e38744e67bdc1a33c4a6b4bde03;p=gtk4.git d/run-tests.sh: Use dh_auto_test In particular this forces the C.UTF-8 locale, which should mean the tests pass even when run under a non-UTF-8 locale like C (which official Debian buildds do not do, but some other environments like reproducible-builds might). Closes: #1027680 --- diff --git a/debian/run-tests.sh b/debian/run-tests.sh index 5a6b42ceea..b87a2871ff 100755 --- a/debian/run-tests.sh +++ b/debian/run-tests.sh @@ -77,10 +77,9 @@ for BACKEND in $BACKENDS; do --generate en_US.UTF-8 \ --generate sv_SE=ISO-8859-1 \ -- \ - meson test -C "$BUILDDIR" \ - --print-errorlogs \ - --setup="$BACKEND" \ - "$@" \ + dh_auto_test --builddirectory="$BUILDDIR" -- \ + --setup="$BACKEND" \ + "$@" \ || touch "$test_data/tests-failed" # Don't base64-encode the image results for tests that upstream