]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/TEST-36-NUMAPOLICY/test.sh
Merge pull request #13559 from ssahani/ipv6ra-route
[thirdparty/systemd.git] / test / TEST-36-NUMAPOLICY / test.sh
1 #!/bin/bash
2 set -e
3
4 TEST_DESCRIPTION="test MUMAPolicy= and NUMAMask= options"
5 TEST_NO_NSPAWN=1
6 QEMU_OPTIONS="-numa node,nodeid=0"
7
8 . $TEST_BASE_DIR/test-functions
9
10 test_setup() {
11 create_empty_image_rootdir
12
13 (
14 LOG_LEVEL=5
15 eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
16
17 setup_basic_environment
18 dracut_install mktemp
19
20 # mask some services that we do not want to run in these tests
21 ln -fs /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service
22 ln -fs /dev/null $initdir/etc/systemd/system/systemd-journal-catalog-update.service
23 ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.service
24 ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.socket
25 ln -fs /dev/null $initdir/etc/systemd/system/systemd-resolved.service
26 ln -fs /dev/null $initdir/etc/systemd/system/systemd-machined.service
27
28 # setup the testsuite service
29 cat >$initdir/etc/systemd/system/testsuite.service <<EOF
30 [Unit]
31 Description=Testsuite service
32
33 [Service]
34 ExecStart=/bin/bash -x /testsuite.sh
35 Type=oneshot
36 StandardOutput=tty
37 StandardError=tty
38 NotifyAccess=all
39 EOF
40 cp testsuite.sh $initdir/
41
42 setup_testsuite
43 )
44 setup_nspawn_root
45 }
46
47 do_test "$@"