]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/TEST-19-DELEGATE/test.sh
test: drop redirection to tty in integration tests
[thirdparty/systemd.git] / test / TEST-19-DELEGATE / test.sh
CommitLineData
b961baf1 1#!/bin/bash
b961baf1 2set -e
025fda6a 3TEST_DESCRIPTION="test cgroup delegation in the unified hierarchy"
b961baf1
LP
4TEST_NO_NSPAWN=1
5
6. $TEST_BASE_DIR/test-functions
e24619fd 7QEMU_TIMEOUT=600
b961baf1
LP
8UNIFIED_CGROUP_HIERARCHY=yes
9
10test_setup() {
ec4cab49 11 create_empty_image_rootdir
b961baf1
LP
12
13 (
14 LOG_LEVEL=5
15 eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
16
17 setup_basic_environment
18
056ae881
YW
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
26
b961baf1
LP
27 # setup the testsuite service
28 cat >$initdir/etc/systemd/system/testsuite.service <<EOF
29[Unit]
30Description=Testsuite service
31
32[Service]
33ExecStart=/bin/bash -x /testsuite.sh
34Type=oneshot
b961baf1
LP
35EOF
36 cp testsuite.sh $initdir/
37
38 setup_testsuite
cc469c3d 39 )
b961baf1
LP
40}
41
42do_test "$@"