tests: skip some tests unless seq(1) is available

seq(1) is not required by POSIX and also not available on some
systems, e.g. the *BSDs.  Skip tests requiring it.

* find/testsuite/sv-34079.sh: Add a check whether seq(1) is available,
and exit 77 (SKIP) otherwise.
* find/testsuite/sv-48030-exec-plus-bug.sh: Likewise.
This commit is contained in:
Bernhard Voelker 2018-02-05 01:20:53 +01:00
parent a22f795891
commit 6f28880ef3
2 changed files with 10 additions and 0 deletions

View File

@ -23,6 +23,11 @@ testname="$(basename $0)"
. "${srcdir}"/binary_locations.sh
# Require seq(1) for this test - which may not be available
# on some systems, e.g on some *BSDs.
seq 2 >/dev/null 2>&1 \
|| { echo "$testname: required utility 'seq' missing" >&2; exit 77; }
make_test_data() {
d="$1"
(

View File

@ -24,6 +24,11 @@ testname="$(basename $0)"
. "${srcdir}"/binary_locations.sh
# Require seq(1) for this test - which may not be available
# on some systems, e.g on some *BSDs.
seq 2 >/dev/null 2>&1 \
|| { echo "$testname: required utility 'seq' missing" >&2; exit 77; }
die() {
echo "$@" >&2
exit 1