]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/TEST-74-AUX-UTILS/test.sh
man/systemd.mount: tmpfs automatically gains After=swap.target dep
[thirdparty/systemd.git] / test / TEST-74-AUX-UTILS / test.sh
1 #!/usr/bin/env bash
2 # SPDX-License-Identifier: LGPL-2.1-or-later
3 set -e
4
5 TEST_DESCRIPTION="Tests for auxiliary utilities"
6 NSPAWN_ARGUMENTS="--private-network"
7
8 # shellcheck source=test/test-functions
9 . "${TEST_BASE_DIR:?}/test-functions"
10
11 test_append_files() {
12 local workspace="${1:?}"
13
14 if ! get_bool "${TEST_PREFER_NSPAWN:-}" && ! get_bool "${TEST_NO_QEMU:-}"; then
15 # Check if we can correctly boot with an invalid machine ID only if we run
16 # the QEMU test, as nspawn refuses the invalid machine ID with -EUCLEAN
17 printf "556f48e837bc4424a710fa2e2c9d3e3c\ne3d\n" >"$workspace/etc/machine-id"
18 fi
19 }
20
21 do_test "$@"