3 TEST_DESCRIPTION
="Resource limits-related tests"
5 .
$TEST_BASE_DIR/test-functions
10 mount
${LOOPDEV}p1
$TESTDIR/root
12 # Create what will eventually be our root filesystem onto an overlay
15 eval $
(udevadm info
--export --query=env
--name=${LOOPDEV}p2
)
17 setup_basic_environment
19 # mask some services that we do not want to run in these tests
20 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-hwdb-update.service
21 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-journal-catalog-update.service
22 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-networkd.service
23 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-networkd.socket
24 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-resolved.service
25 ln -fs /dev
/null
$initdir/etc
/systemd
/system
/systemd-machined.service
27 cat >$initdir/etc
/systemd
/system.conf
<<EOF
29 DefaultLimitNOFILE=10000:16384
32 # setup the testsuite service
33 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<EOF
35 Description=Testsuite service
38 ExecStart=/test-rlimits.sh
42 cp test-rlimits.sh
$initdir/
48 ddebug
"umount $TESTDIR/root"