]>
Commit | Line | Data |
---|---|---|
196b0a11 | 1 | #!/bin/bash |
196b0a11 LP |
2 | set -e |
3 | TEST_DESCRIPTION="test StandardOutput=file:" | |
4 | ||
5 | . $TEST_BASE_DIR/test-functions | |
6 | ||
7 | test_setup() { | |
ec4cab49 | 8 | create_empty_image_rootdir |
196b0a11 LP |
9 | |
10 | ( | |
11 | LOG_LEVEL=5 | |
12 | eval $(udevadm info --export --query=env --name=${LOOPDEV}p2) | |
13 | ||
14 | inst_binary cmp | |
15 | ||
16 | setup_basic_environment | |
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 | cat >$initdir/etc/systemd/system/testsuite.service <<EOF | |
28 | [Unit] | |
29 | Description=Testsuite service | |
30 | ||
31 | [Service] | |
32 | ExecStart=/testsuite.sh | |
33 | Type=oneshot | |
196b0a11 LP |
34 | EOF |
35 | cp testsuite.sh $initdir/ | |
36 | ||
37 | setup_testsuite | |
cc469c3d | 38 | ) |
196b0a11 | 39 | setup_nspawn_root |
196b0a11 LP |
40 | } |
41 | ||
42 | do_test "$@" |