1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-31 14:50:15 +03:00

TEST-75-RESOLVED: assume knot 3.0 or newer is installed

And make the test failed if knot is installed but older than 3.0.
This commit is contained in:
Yu Watanabe 2025-02-12 19:56:25 +09:00 committed by Luca Boccassi
parent bf4b254d70
commit 39da9b894f

View File

@ -16,12 +16,14 @@ set -o pipefail
# shellcheck source=test/units/util.sh
. "$(dirname "$0")"/util.sh
# We need at least Knot 3.0 which support (among others) the ds-push directive
if ! knotc -c /usr/lib/systemd/tests/testdata/knot-data/knot.conf conf-check; then
echo "This test requires at least Knot 3.0. skipping..." | tee --append /skipped
if ! command knotc >/dev/null; then
echo "command knotc not found, skipping..." | tee --append /skipped
exit 77
fi
# We need at least Knot 3.0 which support (among others) the ds-push directive
knotc -c /usr/lib/systemd/tests/testdata/knot-data/knot.conf conf-check
RUN_OUT="$(mktemp)"
run() {