aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test.sh')
-rw-r--r--lib/test.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/test.sh b/lib/test.sh
deleted file mode 100644
index 7c5844b..0000000
--- a/lib/test.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright (c) 2026 Egor Tensin <egor@tensin.name>
-# This file is part of the "test-harness" project.
-# For details, see https://github.com/egor-tensin/test-harness
-# Distributed under the MIT License.
-
-test_should_fail=
-test_root_dir=
-
-_test_setup_global() {
- test_root_dir="$( mktemp -d )"
- # mktemp returns /var/..., which is actually in /private/var/... on macOS.
- test_root_dir="$( readlink -e -- "$test_root_dir" )"
-}
-
-_test_cleanup_global() {
- if [ "$( type -t test_cleanup )" == function ]; then
- test_cleanup || true
- fi
- if [ -n "$test_root_dir" ]; then
- log "Removing test's root directory: $test_root_dir"
- rm -rf -- "$test_root_dir"
- fi
-}