2022-04-17 13:50:16 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
set -e
|
|
|
|
|
|
|
|
TEST_DESCRIPTION="Tests for systemd-resolved"
|
|
|
|
TEST_NO_QEMU=1
|
|
|
|
NSPAWN_ARGUMENTS="--private-network"
|
|
|
|
|
|
|
|
# shellcheck source=test/test-functions
|
|
|
|
. "${TEST_BASE_DIR:?}/test-functions"
|
|
|
|
|
2023-06-02 19:10:08 +00:00
|
|
|
test_require_bin knotd
|
2022-04-17 13:50:16 +00:00
|
|
|
|
|
|
|
test_append_files() {
|
|
|
|
# Install knot
|
|
|
|
image_install kzonecheck keymgr kjournalprint knotc knotd
|
|
|
|
image_install "${ROOTLIBDIR:?}/system/knot.service"
|
2022-09-05 11:54:22 +00:00
|
|
|
image_install -o /lib/tmpfiles.d/knot.conf
|
2022-04-17 13:50:16 +00:00
|
|
|
image_install -o /etc/dbus-1/system.d/cz.nic.knotd.conf
|
2022-08-22 20:04:51 +00:00
|
|
|
image_install -o /etc/default/knot
|
2022-04-17 13:50:16 +00:00
|
|
|
|
|
|
|
# Install DNS-related utilities (usually found in the bind-utils package)
|
|
|
|
image_install delv dig host nslookup
|
2023-06-08 13:12:11 +00:00
|
|
|
|
|
|
|
if command -v nft >/dev/null; then
|
|
|
|
# Install nftables
|
|
|
|
image_install nft
|
|
|
|
fi
|
2022-04-17 13:50:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_test "$@"
|