]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/TEST-25-IMPORT/test.sh
test: be a little bit more verbose when installing service binaries
[thirdparty/systemd.git] / test / TEST-25-IMPORT / test.sh
CommitLineData
f5095a6a 1#!/bin/bash
f5095a6a
LP
2set -e
3TEST_DESCRIPTION="test importd"
4
5. $TEST_BASE_DIR/test-functions
6
7test_setup() {
8 create_empty_image
9 mkdir -p $TESTDIR/root
10 mount ${LOOPDEV}p1 $TESTDIR/root
11
12 (
13 LOG_LEVEL=5
14 eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
15
16 setup_basic_environment
17 dracut_install dd gunzip mv tar diff
18
19 # setup the testsuite service
20 cat >$initdir/etc/systemd/system/testsuite.service <<EOF
21[Unit]
22Description=Testsuite service
23
24[Service]
25ExecStart=/testsuite.sh
26Type=oneshot
27StandardOutput=tty
28StandardError=tty
29NotifyAccess=all
30EOF
31 cp testsuite.sh $initdir/
32
33 setup_testsuite
34 ) || return 1
35 setup_nspawn_root
36
37 ddebug "umount $TESTDIR/root"
38 umount $TESTDIR/root
39}
40
41do_test "$@"