mirror of
https://https.git.savannah.gnu.org/git/findutils.git
synced 2026-01-26 15:39:06 +00:00
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:
parent
a22f795891
commit
6f28880ef3
@ -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"
|
||||
(
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user