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" install: deps: - xz-utils - python - python-lxml - python-setuptools run: steps: - pwd - cd /root - mkdir -p /root/db_results/ - wget http://people.linaro.org/~naresh.kamboju/workloads.tar.gz - tar -xvf workloads.tar.gz - apt-add-repository -y http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu - apt-get update -y - apt-get install -y android-tools-adb android-tools-fastboot - pwd - mkdir -p /usr/local/ - cd /usr/local/ - wget http://people.linaro.org/~naresh.kamboju/build-tools.tar.gz - tar -xvf build-tools.tar.gz - ls build-tools - cd - - wget http://people.linaro.org/~naresh.kamboju/config.py - lava-test-case step1-$SIGNAL_PREFIX-copy-templates --shell cp 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