d/run-tests.sh: Use dh_auto_test
authorSimon McVittie <smcv@debian.org>
Tue, 3 Jan 2023 10:22:42 +0000 (10:22 +0000)
committerSimon McVittie <smcv@debian.org>
Tue, 3 Jan 2023 11:15:13 +0000 (11:15 +0000)
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
debian/run-tests.sh

index 5a6b42ceea26c509b0f1e6aabaa5e2254f129c31..b87a2871ff4847a12951adff5940065a725d9875 100755 (executable)
@@ -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