File: task.yaml

package info (click to toggle)
snapd 2.72-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 80,412 kB
  • sloc: sh: 16,506; ansic: 16,211; python: 11,213; makefile: 1,919; exp: 190; awk: 58; xml: 22
file content (50 lines) | stat: -rw-r--r-- 1,231 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
summary: execute all the spread tests in a nested Ubuntu Core VM

details: |
    Verify that it is possible to run the full test suite in ubuntu core system
    using a nested vm. The test can be used to validate specific pre-built images.

backends: [google-nested-dev]

systems: [ubuntu-*]

manual: true

warn-timeout: 3m
kill-timeout: 8h

environment:
    TESTS/full: "tests/"
    NESTED_BUILD_SNAPD_FROM_CURRENT/full: true
    TESTS/smoke: "tests/smoke/"
    NESTED_BUILD_SNAPD_FROM_CURRENT/smoke: true
    TESTS/custom: ""
    NESTED_BUILD_SNAPD_FROM_CURRENT/custom: false

artifacts: 
    - spread.log

prepare: |
    tests.nested build-image core
    tests.nested create-vm core

execute: |
    SPREAD="$(tests.nested download spread)"

    # Get the nested system to use
    NESTED_SPREAD_SYSTEM="$(tests.nested nested-system)"

    set +x
    export SPREAD_EXTERNAL_ADDRESS=localhost:8022
    RUN_TESTS="external:$NESTED_SPREAD_SYSTEM:$TESTS"
    if [ "$SPREAD_VARIANT" = "custom" ]; then
        RUN_TESTS="$NESTED_SPREAD_TESTS"
        remote.refresh full
    fi

    echo "Running $SPREAD $RUN_TESTS"
    (
        set -o pipefail
        # shellcheck disable=SC2086
        "$SPREAD" $RUN_TESTS | tee spread.log
    )