mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-06 09:26:17 +01:00
eb19551ebe
This allows the tests to be run with `meson test --setup thorough` and it will run all the GTest tests with `-m thorough`. Since this argument isn’t supported by the Python tests, it’s not passed to them. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
22 lines
523 B
Bash
22 lines
523 B
Bash
#!/bin/bash
|
||
#
|
||
# Copyright 2024 GNOME Foundation, Inc.
|
||
#
|
||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||
#
|
||
# Original author: Philip Withnall
|
||
|
||
set -e
|
||
|
||
# If the test is run under Python (e.g. the first argument to this script is
|
||
# /usr/bin/python3) or if it’s the special xmllint test in GLib, then don’t
|
||
# pass the GTest `-m thorough` argument to it.
|
||
if [[ "$1" == *"python"* ||
|
||
"$1" == *"xmllint" ]]; then
|
||
args=()
|
||
else
|
||
# See the documentation for g_test_init()
|
||
args=("-m" "thorough")
|
||
fi
|
||
|
||
exec "$@" "${args[@]}" |