summaryrefslogtreecommitdiff
path: root/test/glib-tap-test.sh
blob: fcb73383ed0532bf9208b778fb057d984cf34c63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# Wrapper to make GTest tests output TAP syntax, because Automake's test
# drivers do not currently support passing the same command-line argument
# to each test executable. All GTest tests produce TAP output if invoked
# with the --tap option.
#
# Usage: "glib-tap-test.sh test-foo --verbose ..." is equivalent to
# "test-foo --tap --verbose ..."

set -e
t="$1"
shift
exec "$t" --tap "$@"