aboutsummaryrefslogtreecommitdiff
path: root/wa2host.yaml
blob: 62cc49308d663df52992afe8a4dd3e7f16cad508 (plain)
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
metadata:
    format: Lava-Test Test Definition 1.0
    name: wa2-host
    description: "WAv2 - host part of multinode job"
    maintainer:
        - milosz.wasilewski@linaro.org
    os:
        - ubuntu
    scope:
        - functional
    devices:
        - kvm

params:
    AGENDA: "hmp_audio.yaml"
    JOB_NAME: "workload-automation"
    MODE: "hmp"
    DEVICE: ""
    SIGNAL_PREFIX: "workload"

run:
    steps:
        - lava-test-case step1-$SIGNAL_PREFIX-copy-templates --shell cp /root/templates/config.py templates/
        - lava-test-case step2-$SIGNAL_PREFIX-prepare-agenda --shell ./prepare-agenda.py --agenda $AGENDA --job-name $JOB_NAME
        - lava-test-case step3-$SIGNAL_PREFIX-wait-for-ip --shell lava-wait $SIGNAL_PREFIX-send-ip
        - lava-test-case step4-$SIGNAL_PREFIX-prepare-config --shell ./prepare-config.py --prefix $SIGNAL_PREFIX
        - lava-test-case step5-$SIGNAL_PREFIX-prepare-device --shell ./prepare-device.sh $MODE $DEVICE
        - lava-test-case step6-$SIGNAL_PREFIX-run-workload --shell ./run-workload.sh $AGENDA $JOB_NAME
        - if [ -f ./$JOB_NAME/results.csv ]; then lava-test-case-attach step7-$SIGNAL_PREFIX-run-workload ./$JOB_NAME/results.csv; fi
        - if [ -f ./$JOB_NAME/run.log ]; then lava-test-case-attach step8-$SIGNAL_PREFIX-run-workload ./$JOB_NAME/run.log; fi
        - lava-test-case step9-$SIGNAL_PREFIX-tear-down --shell ./tear-down.sh $JOB_NAME
        - lava-test-case step10-$SIGNAL_PREFIX-multinode-sync --shell lava-sync $SIGNAL_PREFIX-finished