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
="test cgroup delegation in the unified hierarchy"
8 .
$TEST_BASE_DIR/test-functions
10 UNIFIED_CGROUP_HIERARCHY
=yes
14 mkdir
-p $TESTDIR/root
15 mount
${LOOPDEV}p1
$TESTDIR/root
19 eval $
(udevadm info
--export --query=env
--name=${LOOPDEV}p2
)
21 setup_basic_environment
23 # mask some services that we do not want to run in these tests
24 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-hwdb-update.service
25 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-journal-catalog-update.service
26 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-networkd.service
27 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-networkd.socket
28 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-resolved.service
29 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-machined.service
31 # setup the testsuite service
32 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<EOF
34 Description=Testsuite service
37 ExecStart=/bin/bash -x /testsuite.sh
42 cp testsuite.sh
$initdir/
47 ddebug
"umount $TESTDIR/root"