]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/TEST-22-TMPFILES/test.sh
Merge pull request #12802 from irtimmer/fix-openssl
[thirdparty/systemd.git] / test / TEST-22-TMPFILES / test.sh
CommitLineData
e04fc13f 1#!/bin/bash
e04fc13f
FB
2set -e
3TEST_DESCRIPTION="Tmpfiles related tests"
4TEST_NO_QEMU=1
5
6. $TEST_BASE_DIR/test-functions
7
8test_setup() {
9 # create the basic filesystem layout
0ea21d9e 10 setup_basic_environment
e04fc13f
FB
11 inst_binary mv
12 inst_binary stat
13 inst_binary seq
14 inst_binary xargs
9f36a8fb
FB
15 inst_binary mkfifo
16 inst_binary readlink
e04fc13f
FB
17
18 # mask some services that we do not want to run in these tests
19 ln -fs /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service
20 ln -fs /dev/null $initdir/etc/systemd/system/systemd-journal-catalog-update.service
21 ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.service
22 ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.socket
23 ln -fs /dev/null $initdir/etc/systemd/system/systemd-resolved.service
24 ln -fs /dev/null $initdir/etc/systemd/system/systemd-machined.service
25
26 # setup the testsuite service
27 cp testsuite.service $initdir/etc/systemd/system/
28 setup_testsuite
29
30 mkdir -p $initdir/testsuite
31 cp run-tmpfiles-tests.sh $initdir/testsuite/
32 cp test-*.sh $initdir/testsuite/
33
34 # create dedicated rootfs for nspawn (located in $TESTDIR/nspawn-root)
35 setup_nspawn_root
36}
37
38do_test "$@"