From 14bfb56ba348cfb6f48970049d0092dbea03a693 Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Mon, 25 Aug 2025 13:11:03 +0200 Subject: [PATCH] tests: Make it possible to use mesontest --test-args This makes it possible to pass arguments to g_test_init via mesons --test-args. This can be useful when one wants to run a single test with `meson test testlibrary --test-args='-p /context'. --- buildutil/tap-test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildutil/tap-test b/buildutil/tap-test index fe1d9ae2..fb5b6990 100755 --- a/buildutil/tap-test +++ b/buildutil/tap-test @@ -6,6 +6,7 @@ srcd=$(cd $(dirname $1) && pwd) bn=$(basename $1) +shift tempdir=$(mktemp -d /tmp/tap-test.XXXXXX) touch ${tempdir}/.testtmp function cleanup () { @@ -21,4 +22,4 @@ cd ${tempdir} if [[ $bn == *.wrap ]]; then WRAPPER=${srcd}/test-wrapper.sh fi -$WRAPPER ${srcd}/${bn} -k --tap +$WRAPPER ${srcd}/${bn} -k --tap "$@"