3 TEST_DESCRIPTION
="Job-related tests"
6 .
$TEST_BASE_DIR/test-functions
10 mkdir
-p $TESTDIR/root
11 mount
${LOOPDEV}p1
$TESTDIR/root
13 # Create what will eventually be our root filesystem onto an overlay
16 eval $
(udevadm info
--export --query=env
--name=${LOOPDEV}p2
)
18 setup_basic_environment
20 # mask some services that we do not want to run in these tests
21 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-hwdb-update.service
22 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-journal-catalog-update.service
23 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-networkd.service
24 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-networkd.socket
25 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-resolved.service
26 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-machined.service
28 # setup the testsuite service
29 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<EOF
31 Description=Testsuite service
32 After=multi-user.target
35 ExecStart=/test-jobs.sh
41 # copy the units used by this test
42 cp $TEST_BASE_DIR/{hello.service
,sleep.service
,hello-after-sleep.target
,unstoppable.service
} \
43 $initdir/etc
/systemd
/system
44 cp test-jobs.sh
$initdir/
50 ddebug
"umount $TESTDIR/root"