2 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3 # ex: ts=8 sw=4 sts=4 et filetype=sh
5 TEST_DESCRIPTION
="Tmpfiles related tests"
8 .
$TEST_BASE_DIR/test-functions
11 # create the basic filesystem layout
12 setup_basic_environment
>/dev
/null
18 # mask some services that we do not want to run in these tests
19 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-hwdb-update.service
20 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-journal-catalog-update.service
21 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-networkd.service
22 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-networkd.socket
23 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-resolved.service
24 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-machined.service
26 # setup the testsuite service
27 cp testsuite.service
$initdir/etc
/systemd
/system
/
30 mkdir
-p $initdir/testsuite
31 cp run-tmpfiles-tests.sh
$initdir/testsuite
/
32 cp test-
*.sh
$initdir/testsuite
/
34 # create dedicated rootfs for nspawn (located in $TESTDIR/nspawn-root)