diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-05-03 15:05:12 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-06-02 18:43:11 +0200 |
commit | 093d5456588004f5b710ae03c74c695e9f2b527d (patch) | |
tree | 17028f84ed171a62d317551be88e6fb234997d97 /test/TEST-82-SOFTREBOOT | |
parent | test: disable SoftReboot() in dfuzzer test for now (diff) | |
download | systemd-093d5456588004f5b710ae03c74c695e9f2b527d.tar.xz systemd-093d5456588004f5b710ae03c74c695e9f2b527d.zip |
test: add integration test for soft reboots incl. fdstore passing
Diffstat (limited to 'test/TEST-82-SOFTREBOOT')
l--------- | test/TEST-82-SOFTREBOOT/Makefile | 1 | ||||
-rwxr-xr-x | test/TEST-82-SOFTREBOOT/test.sh | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/TEST-82-SOFTREBOOT/Makefile b/test/TEST-82-SOFTREBOOT/Makefile new file mode 120000 index 0000000000..e9f93b1104 --- /dev/null +++ b/test/TEST-82-SOFTREBOOT/Makefile @@ -0,0 +1 @@ +../TEST-01-BASIC/Makefile
\ No newline at end of file diff --git a/test/TEST-82-SOFTREBOOT/test.sh b/test/TEST-82-SOFTREBOOT/test.sh new file mode 100755 index 0000000000..9d88c94fb7 --- /dev/null +++ b/test/TEST-82-SOFTREBOOT/test.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later +set -e + +TEST_DESCRIPTION="Test Soft-Rebooting" + +# shellcheck source=test/test-functions +. "$TEST_BASE_DIR/test-functions" + +test_append_files() { + local workspace="${1:?}" + # prevent shutdown in test suite, the expect script does that manually. + mkdir -p "${workspace:?}/etc/systemd/system/end.service.d" + cat >"$workspace/etc/systemd/system/end.service.d/99-override.conf" <<EOF +[Service] +ExecStart= +ExecStart=/bin/true +EOF +} + +do_test "$@" |