]>
Commit | Line | Data |
---|---|---|
f5095a6a | 1 | #!/bin/bash |
f5095a6a LP |
2 | set -e |
3 | TEST_DESCRIPTION="test importd" | |
4 | ||
5 | . $TEST_BASE_DIR/test-functions | |
6 | ||
7 | test_setup() { | |
ec4cab49 | 8 | create_empty_image_rootdir |
f5095a6a LP |
9 | |
10 | ( | |
11 | LOG_LEVEL=5 | |
12 | eval $(udevadm info --export --query=env --name=${LOOPDEV}p2) | |
13 | ||
14 | setup_basic_environment | |
15 | dracut_install dd gunzip mv tar diff | |
16 | ||
17 | # setup the testsuite service | |
18 | cat >$initdir/etc/systemd/system/testsuite.service <<EOF | |
19 | [Unit] | |
20 | Description=Testsuite service | |
21 | ||
22 | [Service] | |
23 | ExecStart=/testsuite.sh | |
24 | Type=oneshot | |
f5095a6a LP |
25 | EOF |
26 | cp testsuite.sh $initdir/ | |
27 | ||
28 | setup_testsuite | |
cc469c3d | 29 | ) |
f5095a6a | 30 | setup_nspawn_root |
f5095a6a LP |
31 | } |
32 | ||
33 | do_test "$@" |