diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-04-21 16:50:53 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-04-21 16:50:53 -0400 |
commit | ec0cffd71a257cef03475ff5d189b2057db4426b (patch) | |
tree | 16a15116ad3f96252693d076d877084fdd402919 /tests.sh | |
parent | bda772d9382506dd66a1c44ba821d3068d0a8479 (diff) | |
download | bfs-ec0cffd71a257cef03475ff5d189b2057db4426b.tar.xz |
tests: Fix --bfs=path
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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" |