about summary refs log tree commit diff
path: root/t/lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/lib.sh')
-rw-r--r--t/lib.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/t/lib.sh b/t/lib.sh
new file mode 100644
index 0000000..30a16e1
--- /dev/null
+++ b/t/lib.sh
@@ -0,0 +1,15 @@
+export "PATH=$PWD:$PWD/t:$PATH"
+
+umask 002
+
+plan() {
+       printf '1..%d\n' "$1"
+}
+
+check() {
+	export LLVM_PROFILE_FILE=/tmp/cov/lr.$(date +%s%N)
+	TESTDIR=$(mktemp -d)
+	cd $TESTDIR
+	tap3 "$@"
+	rm -r "$TESTDIR"
+}