]>
Commit | Line | Data |
---|---|---|
ff12a795 | 1 | #!/usr/bin/env bash |
7b3cec95 | 2 | # SPDX-License-Identifier: LGPL-2.1-or-later |
818567fc | 3 | set -e |
3f161ba9 | 4 | |
09c033a2 | 5 | TEST_DESCRIPTION="Tests for core PID1 functionality" |
09f6f45a | 6 | |
e9af462a YW |
7 | # for testing PrivateNetwork=yes |
8 | NSPAWN_ARGUMENTS="--capability=CAP_NET_ADMIN" | |
9 | ||
3f161ba9 FS |
10 | # shellcheck source=test/test-functions |
11 | . "${TEST_BASE_DIR:?}/test-functions" | |
09f6f45a | 12 | |
cd62ba42 FS |
13 | test_append_files() { |
14 | local workspace="${1:?}" | |
15 | ||
54bf13a4 FS |
16 | # We might not be fast enough to hit the limit (20 triggers per 2 secs) |
17 | # in certain environments, i.e. when running without KVM or when collecting | |
18 | # coverage. Let's help it a bit in such case. | |
19 | if ! get_bool "$QEMU_KVM" || get_bool "$IS_BUILT_WITH_COVERAGE"; then | |
a8faac7d | 20 | mkdir -p "$workspace/etc/systemd/system/issue2467.socket.d" |
54bf13a4 | 21 | printf "[Socket]\nTriggerLimitIntervalSec=10\n" >"$workspace/etc/systemd/system/issue2467.socket.d/TriggerLimitInterval.conf" |
a8faac7d FS |
22 | fi |
23 | ||
1eeaa93d | 24 | image_install logger socat |
cd62ba42 FS |
25 | } |
26 | ||
c4cd6205 | 27 | do_test "$@" |