2020-03-04 09:35:06 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-10-17 16:13:06 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-08-07 19:09:21 +00:00
|
|
|
set -e
|
2021-04-19 11:01:59 +00:00
|
|
|
|
2012-05-21 16:55:48 +00:00
|
|
|
TEST_DESCRIPTION="Basic systemd setup"
|
2019-12-12 08:37:19 +00:00
|
|
|
IMAGE_NAME="basic"
|
2018-12-23 13:28:01 +00:00
|
|
|
RUN_IN_UNPRIVILEGED_CONTAINER=${RUN_IN_UNPRIVILEGED_CONTAINER:-yes}
|
2019-12-17 11:52:35 +00:00
|
|
|
TEST_REQUIRE_INSTALL_TESTS=0
|
2022-02-16 19:29:14 +00:00
|
|
|
TEST_SUPPORTING_SERVICES_SHOULD_BE_MASKED=0
|
2012-05-21 16:55:48 +00:00
|
|
|
|
2023-06-29 11:31:19 +00:00
|
|
|
# Check if we can correctly deserialize if the kernel cmdline contains "weird" stuff
|
|
|
|
# like an invalid argument, "end of arguments" separator, or a sysvinit argument (-z)
|
|
|
|
# See: https://github.com/systemd/systemd/issues/28184
|
|
|
|
KERNEL_APPEND="foo -- -z bar --- baz $KERNEL_APPEND"
|
|
|
|
|
2021-04-19 11:01:59 +00:00
|
|
|
# shellcheck source=test/test-functions
|
|
|
|
. "${TEST_BASE_DIR:?}/test-functions"
|
2012-05-21 16:55:48 +00:00
|
|
|
|
2021-04-26 17:20:18 +00:00
|
|
|
do_test "$@"
|