Skip to content

Commit 3ab4ea3

Browse files
committed
run-gnu-test.sh: Use system tools
1 parent 49f82da commit 3ab4ea3

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

util/run-gnu-test.sh

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,9 @@
88
# * note: to run a single test => `make check TESTS=PATH/TO/TEST/SCRIPT SUBDIRS=. VERBOSE=yes`
99

1010
# Use GNU version for make, nproc, readlink on *BSD
11-
case "$OSTYPE" in
12-
*bsd*)
13-
MAKE="gmake"
14-
NPROC="gnproc"
15-
READLINK="greadlink"
16-
;;
17-
*)
18-
MAKE="make"
19-
NPROC="nproc"
20-
READLINK="readlink"
21-
;;
22-
esac
11+
MAKE=$(command -v gmake||command -v make)
12+
NPROC=$(command -v gnproc||command -v nproc)
13+
READLINK=$(command -v greadlink||command -v readlink)
2314

2415
ME_dir="$(dirname -- "$("${READLINK}" -fm -- "$0")")"
2516
REPO_main_dir="$(dirname -- "${ME_dir}")"

0 commit comments

Comments
 (0)