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
="Journal-related tests"
7 .
$TEST_BASE_DIR/test-functions
11 mkdir
-p $TESTDIR/root
12 mount
${LOOPDEV}p1
$TESTDIR/root
14 # Create what will eventually be our root filesystem onto an overlay
17 eval $
(udevadm info
--export --query=env
--name=${LOOPDEV}p2
)
19 setup_basic_environment
21 # setup the testsuite service
22 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<EOF
24 Description=Testsuite service
25 After=multi-user.target
28 ExecStart=/test-journal.sh
32 cat >$initdir/etc
/systemd
/system
/forever-print-hola.service
<<EOF
34 Description=ForeverPrintHola service
38 ExecStart=/bin/sh -x -c 'while :; do printf "Hola\n" || touch /i-lose-my-logs; sleep 1; done'
41 cp test-journal.sh
$initdir/
47 ddebug
"umount $TESTDIR/root"