blob: 970b1c33c8075915f322ad6e8526a1f4995cab30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#! /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
|