3 TEST_DESCRIPTION
="test OOM killer logic"
6 .
$TEST_BASE_DIR/test-functions
8 UNIFIED_CGROUP_HIERARCHY
=yes
11 create_empty_image_rootdir
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 # setup the testsuite service
28 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<EOF
30 Description=Testsuite service
33 ExecStart=/testsuite.sh
39 cp testsuite.sh
$initdir/