]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/TEST-15-DROPIN/test.sh
test: add function to reduce copied setup boilerplate
[thirdparty/systemd.git] / test / TEST-15-DROPIN / test.sh
1 #!/bin/bash
2 set -e
3 TEST_DESCRIPTION="Dropin tests"
4 TEST_NO_QEMU=1
5
6 . $TEST_BASE_DIR/test-functions
7
8 test_setup() {
9 # create the basic filesystem layout
10 setup_basic_environment
11 mask_supporting_services
12
13 # import the test scripts in the rootfs and plug them in systemd
14 cp testsuite.service $initdir/etc/systemd/system/
15 cp test-dropin.sh $initdir/
16 setup_testsuite
17
18 # create dedicated rootfs for nspawn (located in $TESTDIR/nspawn-root)
19 setup_nspawn_root
20 }
21
22 do_test "$@"