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