]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/TEST-36-NUMAPOLICY/test.sh
Merge pull request #13265 from keszybz/timedated-ntp-logging
[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
11 mkdir -p $TESTDIR/root
12 mount ${LOOPDEV}p1 $TESTDIR/root
13
14 (
15 LOG_LEVEL=5
16 eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
17
18 setup_basic_environment
19 dracut_install mktemp
20
21 # mask some services that we do not want to run in these tests
22 ln -fs /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service
23 ln -fs /dev/null $initdir/etc/systemd/system/systemd-journal-catalog-update.service
24 ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.service
25 ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.socket
26 ln -fs /dev/null $initdir/etc/systemd/system/systemd-resolved.service
27 ln -fs /dev/null $initdir/etc/systemd/system/systemd-machined.service
28
29 # setup the testsuite service
30 cat >$initdir/etc/systemd/system/testsuite.service <<EOF
31 [Unit]
32 Description=Testsuite service
33
34 [Service]
35 ExecStart=/bin/bash -x /testsuite.sh
36 Type=oneshot
37 StandardOutput=tty
38 StandardError=tty
39 NotifyAccess=all
40 EOF
41 cp testsuite.sh $initdir/
42
43 setup_testsuite
44 ) || return 1
45 setup_nspawn_root
46
47 ddebug "umount $TESTDIR/root"
48 umount $TESTDIR/root
49 }
50
51 do_test "$@"