]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/TEST-39-EXECRELOAD/test.sh
Merge pull request #13866 from keszybz/nspawn-restarts
[thirdparty/systemd.git] / test / TEST-39-EXECRELOAD / test.sh
1 #!/bin/bash
2 set -e
3 TEST_DESCRIPTION="Test ExecReload= (PR #13098)"
4
5 . $TEST_BASE_DIR/test-functions
6
7 test_setup() {
8 create_empty_image_rootdir
9
10 # Create what will eventually be our root filesystem onto an overlay
11 (
12 LOG_LEVEL=5
13 eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
14
15 setup_basic_environment
16 mask_supporting_services
17 dracut_install mktemp
18
19 # setup the testsuite service
20 cat >$initdir/etc/systemd/system/testsuite.service <<EOF
21 [Unit]
22 Description=Testsuite service
23
24 [Service]
25 ExecStart=/bin/bash -x /testsuite.sh
26 Type=oneshot
27 EOF
28 cp testsuite.sh $initdir/
29
30 setup_testsuite
31 )
32 setup_nspawn_root
33 }
34
35 do_test "$@"