fee9f48409
These files were taken from json-glib, around the era of this commit: https://git.gnome.org/browse/json-glib/tree/build/autotools?id=2779d537492f1902d71cf648631238110b62b311 Unfortunately, this involved hacking it up a bit: - I couldn't easily use `nobase` for the data, so I deleted that. Test data goes in the installed-tests dir. - Delete duplicated predeclared variables; we're using nonrecursive make. - Ensure we run each test in its own tmpdir
14 lines
248 B
Bash
Executable File
14 lines
248 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# run a GTest in tap mode. The test binary is passed as $1
|
|
|
|
srcd=$(cd $(dirname $1) && pwd)
|
|
bn=$(basename $1)
|
|
tempdir=$(mktemp -d)
|
|
function cleanup () {
|
|
rm "${tempdir}" -rf
|
|
}
|
|
trap cleanup EXIT
|
|
cd ${tempdir}
|
|
${srcd}/${bn} -k --tap
|