2020-03-04 09:35:06 +00:00
|
|
|
#!/usr/bin/env bash
|
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
|
2012-05-21 16:55:48 +00:00
|
|
|
|
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-01-06 21:42:28 +00:00
|
|
|
test_append_files() {
|
|
|
|
# install tests manually so the test is functional even when -Dinstall-tests=false
|
2021-04-19 11:01:59 +00:00
|
|
|
local dst="${1:?}/usr/lib/systemd/tests/testdata/units/"
|
2020-11-18 14:39:50 +00:00
|
|
|
mkdir -p "$dst"
|
2021-04-19 11:01:59 +00:00
|
|
|
cp -v "$TEST_UNITS_DIR"/{testsuite-01,end}.service "$TEST_UNITS_DIR/testsuite.target" "$dst"
|
2012-05-21 16:55:48 +00:00
|
|
|
}
|
|
|
|
|
2021-04-26 17:20:18 +00:00
|
|
|
do_test "$@"
|