]>
Commit | Line | Data |
---|---|---|
e04fc13f FB |
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="Tmpfiles related tests" | |
6 | TEST_NO_QEMU=1 | |
7 | ||
8 | . $TEST_BASE_DIR/test-functions | |
9 | ||
10 | test_setup() { | |
11 | # create the basic filesystem layout | |
0ea21d9e | 12 | setup_basic_environment |
e04fc13f FB |
13 | inst_binary mv |
14 | inst_binary stat | |
15 | inst_binary seq | |
16 | inst_binary xargs | |
9f36a8fb FB |
17 | inst_binary mkfifo |
18 | inst_binary readlink | |
e04fc13f FB |
19 | |
20 | # mask some services that we do not want to run in these tests | |
21 | ln -fs /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service | |
22 | ln -fs /dev/null $initdir/etc/systemd/system/systemd-journal-catalog-update.service | |
23 | ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.service | |
24 | ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.socket | |
25 | ln -fs /dev/null $initdir/etc/systemd/system/systemd-resolved.service | |
26 | ln -fs /dev/null $initdir/etc/systemd/system/systemd-machined.service | |
27 | ||
28 | # setup the testsuite service | |
29 | cp testsuite.service $initdir/etc/systemd/system/ | |
30 | setup_testsuite | |
31 | ||
32 | mkdir -p $initdir/testsuite | |
33 | cp run-tmpfiles-tests.sh $initdir/testsuite/ | |
34 | cp test-*.sh $initdir/testsuite/ | |
35 | ||
36 | # create dedicated rootfs for nspawn (located in $TESTDIR/nspawn-root) | |
37 | setup_nspawn_root | |
38 | } | |
39 | ||
40 | do_test "$@" |