3 TEST_DESCRIPTION
="Journal-related tests"
5 .
$TEST_BASE_DIR/test-functions
8 create_empty_image_rootdir
10 # Create what will eventually be our root filesystem onto an overlay
13 eval $
(udevadm info
--export --query=env
--name=${LOOPDEV}p2
)
15 setup_basic_environment
16 mask_supporting_services
18 # setup the testsuite service
19 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<EOF
21 Description=Testsuite service
24 ExecStart=/test-journal.sh
28 cat >$initdir/etc
/systemd
/system
/forever-print-hola.service
<<EOF
30 Description=ForeverPrintHola service
34 ExecStart=/bin/sh -x -c 'while :; do printf "Hola\n" || touch /i-lose-my-logs; sleep 1; done'
37 cp test-journal.sh
$initdir/