summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-04-21 16:50:53 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-04-21 16:50:53 -0400
commitec0cffd71a257cef03475ff5d189b2057db4426b (patch)
tree16a15116ad3f96252693d076d877084fdd402919
parentbda772d9382506dd66a1c44ba821d3068d0a8479 (diff)
downloadbfs-ec0cffd71a257cef03475ff5d189b2057db4426b.tar.xz
tests: Fix --bfs=path
-rwxr-xr-xtests.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests.sh b/tests.sh
index f6807e2..9fef675 100755
--- a/tests.sh
+++ b/tests.sh
@@ -60,6 +60,16 @@ Usage: $0 [--bfs=path/to/bfs] [--posix|--bsd|--gnu|--all]
EOF
}
+function _realpath() {
+ (
+ cd "${1%/*}"
+ echo "$PWD/${1##*/}"
+ )
+}
+
+BFS="$(_realpath ./bfs)"
+TESTS="$(_realpath ./tests)"
+
BSD=yes
GNU=yes
ALL=yes
@@ -608,16 +618,6 @@ if [ ! "$EXPLICIT" ]; then
[ "$ALL" ] && enable_tests "${bfs_tests[@]}"
fi
-function _realpath() {
- (
- cd "${1%/*}"
- echo "$PWD/${1##*/}"
- )
-}
-
-BFS="$(_realpath ./bfs)"
-TESTS="$(_realpath ./tests)"
-
# The temporary directory that will hold our test data
TMP="$(mktemp -d "${TMPDIR:-/tmp}"/bfs.XXXXXXXXXX)"
chown "$(id -u):$(id -g)" "$TMP"