about summary refs log tree commit diff
path: root/t/lib.sh
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2021-06-25 21:24:47 +0200
committerLeah Neukirchen <leah@vuxu.org>2021-06-25 21:28:19 +0200
commit32c82229d93471c25eaaaed5e76704893162a125 (patch)
tree7f396797c397dac8121fd8742d7eb9aa1cd90b64 /t/lib.sh
parentca309754c6aba81be4f290279666a68f75306d70 (diff)
downloadlr-testsuite.tar.gz
lr-testsuite.tar.xz
lr-testsuite.zip
add partial test suite testsuite
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"
+}