]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/TEST-15-DROPIN/test.sh
cc0d56da8a38ffbbff494f602dba69d2023fd492
[thirdparty/systemd.git] / test / TEST-15-DROPIN / test.sh
1 #!/bin/bash
2 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3 # ex: ts=8 sw=4 sts=4 et filetype=sh
4 set -e
5 TEST_DESCRIPTION="Dropin tests"
6 TEST_NO_QEMU=1
7
8 . $TEST_BASE_DIR/test-functions
9
10 test_setup() {
11 # create the basic filesystem layout
12 setup_basic_environment
13
14 # mask some services that we do not want to run in these tests
15 ln -s /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service
16 ln -s /dev/null $initdir/etc/systemd/system/systemd-journal-catalog-update.service
17 ln -s /dev/null $initdir/etc/systemd/system/systemd-networkd.service
18 ln -s /dev/null $initdir/etc/systemd/system/systemd-networkd.socket
19 ln -s /dev/null $initdir/etc/systemd/system/systemd-resolved.service
20
21 # import the test scripts in the rootfs and plug them in systemd
22 cp testsuite.service $initdir/etc/systemd/system/
23 cp test-dropin.sh $initdir/
24 setup_testsuite
25
26 # create dedicated rootfs for nspawn (located in $TESTDIR/nspawn-root)
27 setup_nspawn_root
28 }
29
30 test_cleanup() {
31 return 0
32 }
33
34 do_test "$@"