2020-03-04 10:35:06 +01:00
|
|
|
#!/usr/bin/env bash
|
2018-03-05 12:32:18 +01:00
|
|
|
set -e
|
|
|
|
TEST_DESCRIPTION="Tmpfiles related tests"
|
|
|
|
TEST_NO_QEMU=1
|
|
|
|
|
|
|
|
. $TEST_BASE_DIR/test-functions
|
|
|
|
|
|
|
|
test_setup() {
|
|
|
|
# create the basic filesystem layout
|
2018-05-03 15:47:42 +02:00
|
|
|
setup_basic_environment
|
2019-10-08 09:10:12 +02:00
|
|
|
mask_supporting_services
|
2018-03-05 12:32:18 +01:00
|
|
|
inst_binary mv
|
|
|
|
inst_binary stat
|
|
|
|
inst_binary seq
|
|
|
|
inst_binary xargs
|
2018-04-13 15:32:25 +02:00
|
|
|
inst_binary mkfifo
|
|
|
|
inst_binary readlink
|
2018-03-05 12:32:18 +01:00
|
|
|
|
|
|
|
# setup the testsuite service
|
|
|
|
cp testsuite.service $initdir/etc/systemd/system/
|
|
|
|
setup_testsuite
|
|
|
|
|
|
|
|
mkdir -p $initdir/testsuite
|
|
|
|
cp run-tmpfiles-tests.sh $initdir/testsuite/
|
|
|
|
cp test-*.sh $initdir/testsuite/
|
|
|
|
|
|
|
|
# create dedicated rootfs for nspawn (located in $TESTDIR/nspawn-root)
|
|
|
|
setup_nspawn_root
|
|
|
|
}
|
|
|
|
|
|
|
|
do_test "$@"
|