]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/TEST-16-EXTEND-TIMEOUT/test.sh
test: add function to reduce copied setup boilerplate
[thirdparty/systemd.git] / test / TEST-16-EXTEND-TIMEOUT / test.sh
CommitLineData
a327431b 1#!/bin/bash
a327431b
DB
2set -e
3TEST_DESCRIPTION="EXTEND_TIMEOUT_USEC=usec start/runtime/stop tests"
4SKIP_INITRD=yes
3edc0c59 5TEST_NO_QEMU=1
a327431b
DB
6
7. $TEST_BASE_DIR/test-functions
8
9test_setup() {
10 create_empty_image
a327431b
DB
11
12 # Create what will eventually be our root filesystem onto an overlay
13 (
14 eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
15
16 setup_basic_environment
51fa8591 17 mask_supporting_services
a327431b
DB
18
19 for s in success-all success-start success-stop success-runtime \
20 fail-start fail-stop fail-runtime
21 do
22 cp testsuite-${s}.service ${initdir}/etc/systemd/system
23 done
24 cp testsuite.service ${initdir}/etc/systemd/system
25
26 cp extend_timeout_test_service.sh ${initdir}/
27 cp assess.sh ${initdir}/
a327431b
DB
28
29 setup_testsuite
cc469c3d 30 )
a327431b
DB
31
32 setup_nspawn_root
a327431b
DB
33}
34
35do_test "$@"