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
|
2018-03-05 11:32:18 +00:00
|
|
|
set -e
|
2021-04-19 11:01:59 +00:00
|
|
|
|
2018-03-05 11:32:18 +00:00
|
|
|
TEST_DESCRIPTION="Tmpfiles related tests"
|
|
|
|
TEST_NO_QEMU=1
|
2021-04-19 11:01:59 +00:00
|
|
|
|
|
|
|
# shellcheck source=test/test-functions
|
|
|
|
. "${TEST_BASE_DIR:?}/test-functions"
|
2018-03-05 11:32:18 +00:00
|
|
|
|
2021-03-09 21:20:39 +00:00
|
|
|
test_append_files() {
|
2021-07-04 10:21:23 +00:00
|
|
|
if get_bool "${IS_BUILT_WITH_ASAN:=}"; then
|
2021-04-19 11:01:59 +00:00
|
|
|
if [[ -z "${initdir:=}" ]]; then
|
2021-03-09 21:20:39 +00:00
|
|
|
echo >&2 "\$initdir is not defined, can't continue"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
sed -i "s/systemd//g" "$initdir/etc/nsswitch.conf"
|
|
|
|
fi
|
2023-03-09 12:13:34 +00:00
|
|
|
|
|
|
|
image_install setfacl
|
2021-03-09 21:20:39 +00:00
|
|
|
}
|
|
|
|
|
2021-04-26 17:20:18 +00:00
|
|
|
do_test "$@"
|