]>
git.proxmox.com Git - systemd.git/blob - test/TEST-07-ISSUE-1981/test.sh
2 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3 # ex: ts=8 sw=4 sts=4 et filetype=sh
4 TEST_DESCRIPTION
="https://github.com/systemd/systemd/issues/1981"
6 .
$TEST_BASE_DIR/test-functions
11 timeout
--foreground 30s systemd-nspawn
--kill-signal=SIGKILL
--boot --directory=$TESTDIR/nspawn-root
$ROOTLIBDIR/systemd
$KERNEL_APPEND
12 check_result_nspawn ||
return 1
14 dwarn
"can't run systemd-nspawn, skipping"
21 mkdir
-p $TESTDIR/root
22 mount
${LOOPDEV}p1
$TESTDIR/root
24 # Create what will eventually be our root filesystem onto an overlay
27 eval $
(udevadm info
--export --query=env
--name=${LOOPDEV}p2
)
29 setup_basic_environment
31 # setup the testsuite service
32 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<EOF
34 Description=Testsuite service
35 After=multi-user.target
38 ExecStart=/test-segfault.sh
42 cp test-segfault.sh
$initdir/
48 ddebug
"umount $TESTDIR/root"
53 umount
$TESTDIR/root
2>/dev
/null
54 [[ $LOOPDEV ]] && losetup
-d $LOOPDEV