mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
976ed3b621
Without this, repeated runs of "make -C TEST/... setup" fail when trying to create the symlink.
29 lines
931 B
Bash
Executable File
29 lines
931 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
TEST_DESCRIPTION="Dropin tests"
|
|
TEST_NO_QEMU=1
|
|
|
|
. $TEST_BASE_DIR/test-functions
|
|
|
|
test_setup() {
|
|
# create the basic filesystem layout
|
|
setup_basic_environment
|
|
|
|
# mask some services that we do not want to run in these tests
|
|
ln -fs /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service
|
|
ln -fs /dev/null $initdir/etc/systemd/system/systemd-journal-catalog-update.service
|
|
ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.service
|
|
ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.socket
|
|
ln -fs /dev/null $initdir/etc/systemd/system/systemd-resolved.service
|
|
|
|
# import the test scripts in the rootfs and plug them in systemd
|
|
cp testsuite.service $initdir/etc/systemd/system/
|
|
cp test-dropin.sh $initdir/
|
|
setup_testsuite
|
|
|
|
# create dedicated rootfs for nspawn (located in $TESTDIR/nspawn-root)
|
|
setup_nspawn_root
|
|
}
|
|
|
|
do_test "$@"
|