2 # Wrapper to make GTest tests output TAP syntax, because Automake's test
3 # drivers do not currently support passing the same command-line argument
4 # to each test executable. All GTest tests produce TAP output if invoked
5 # with the --tap option.
7 # Usage: "glib-tap-test.sh test-foo --verbose ..." is equivalent to
8 # "test-foo --tap --verbose ..."
16 # We're running a Windows executable, possibly on a Unix
17 # platform. Avoid having invalid TAP syntax like "ok 3\r\n"
18 # where "ok 3\n" was intended.
19 echo 1 > "$t".exit-status.tmp
23 echo "$?" > "$t".exit-status.tmp
25 e="$(cat "$t".exit-status.tmp)"
26 rm "$t".exit-status.tmp