summaryrefslogtreecommitdiffstats
path: root/test/TEST-13-NSPAWN-SMOKE/test.sh
blob: 236378a3802c7347b7f85a99d3a4ca47b899e4a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
set -e
TEST_DESCRIPTION="systemd-nspawn smoke test"
IMAGE_NAME="nspawn"
TEST_NO_NSPAWN=1

. $TEST_BASE_DIR/test-functions

test_create_image() {
    create_empty_image_rootdir

    # Create what will eventually be our root filesystem onto an overlay
    (
        LOG_LEVEL=5
        setup_basic_environment
        mask_supporting_services

        ../create-busybox-container $initdir/testsuite-13.nc-container
        initdir="$initdir/testsuite-13.nc-container" dracut_install nc ip md5sum
    )
}

do_test "$@" 13