]>
git.ipfire.org Git - thirdparty/systemd.git/blob - test/TEST-05-RLIMITS/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
="Resource limits-related tests"
6 .
$TEST_BASE_DIR/test-functions
10 mkdir
-p $TESTDIR/root
11 mount
${LOOPDEV}p1
$TESTDIR/root
13 # Create what will eventually be our root filesystem onto an overlay
16 eval $
(udevadm info
--export --query=env
--name=${LOOPDEV}p2
)
18 setup_basic_environment
20 cat >$initdir/etc
/systemd
/system.conf
<<EOF
22 DefaultLimitNOFILE=10000:16384
25 # setup the testsuite service
26 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<EOF
28 Description=Testsuite service
29 After=multi-user.target
32 ExecStart=/test-rlimits.sh
36 cp test-rlimits.sh
$initdir/
42 ddebug
"umount $TESTDIR/root"