]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/TEST-36-NUMAPOLICY/test.sh
path: stop watching path specs once we triggered the target unit
[thirdparty/systemd.git] / test / TEST-36-NUMAPOLICY / test.sh
1 #!/bin/bash
2 set -e
3 TEST_DESCRIPTION="test MUMAPolicy= and NUMAMask= options"
4 TEST_NO_NSPAWN=1
5 QEMU_OPTIONS="-numa node,nodeid=0"
6
7 . $TEST_BASE_DIR/test-functions
8
9 test_setup() {
10 create_empty_image_rootdir
11
12 (
13 LOG_LEVEL=5
14 eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
15
16 setup_basic_environment
17 dracut_install mktemp
18
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
27 # setup the testsuite service
28 cat >$initdir/etc/systemd/system/testsuite.service <<EOF
29 [Unit]
30 Description=Testsuite service
31
32 [Service]
33 ExecStart=/bin/bash -x /testsuite.sh
34 Type=oneshot
35 StandardOutput=tty
36 StandardError=tty
37 NotifyAccess=all
38 EOF
39 cp testsuite.sh $initdir/
40
41 setup_testsuite
42 ) || return 1
43 setup_nspawn_root
44 }
45
46 do_test "$@"