aboutsummaryrefslogtreecommitdiff
path: root/wa2-linux-local.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'wa2-linux-local.yaml')
-rw-r--r--wa2-linux-local.yaml44
1 files changed, 44 insertions, 0 deletions
diff --git a/wa2-linux-local.yaml b/wa2-linux-local.yaml
new file mode 100644
index 0000000..a477b7d
--- /dev/null
+++ b/wa2-linux-local.yaml
@@ -0,0 +1,44 @@
+metadata:
+ format: Lava-Test Test Definition 1.0
+ name: wa2-linux-local
+ description: "Run WA2 on Linux local through loopback interface"
+ maintainer:
+ - milosz.wasilewski@linaro.org
+ - chase.qi@linaro.org
+ os:
+ - debian
+ scope:
+ - functional
+ devices:
+ - hi6220-hikey
+ - apq8016-sbc
+
+params:
+ AGENDA: "templates/generic-linux.yaml"
+ JOB_NAME: "WA2-linux-local"
+ # Name of the template for device config
+ CONFIG: "templates/config-generic-linux-local.py"
+ DEPENDENCIES: "git wget zip xz-utils python python-yaml python-lxml
+ python-setuptools python-numpy python-colorama python-pip
+ sqlite3 libstdc++6:i386 libgcc1:i386 zlib1g:i386
+ libncurses5:i386 android-tools-adb android-tools-fastboot
+ time sysstat openssh-client openssh-server sshpass"
+ # Provide a valid build-tools URL from Json
+ BUILD_TOOLS_URL: "http://testdata.validation.linaro.org/apks/workload-automation/build-tools.tar.gz"
+ # Provide a valid workload_automation_home URL from Json
+ WA_HOME_URL: "http://testdata.validation.linaro.org/apks/workload-automation/workload_automation_home.tar.gz"
+
+install:
+ steps:
+ - './install-deps.sh $DEPENDENCIES'
+ - './install-wa2.sh $BUILD_TOOLS_URL $WA_HOME_URL $CONFIG'
+
+run:
+ steps:
+ - set -x
+ # step1-enable-root-login and step2-change-root-passwd
+ - ./setup-linux-target.sh
+ - lava-test-case step3-restart-ssh-server --shell service ssh restart
+ - lava-test-case step4-run-workload --shell wa run $AGENDA -v -f -d $JOB_NAME -c $CONFIG
+ - tar caf ${JOB_NAME}.tar.xz $JOB_NAME
+ - lava-test-run-attach ${JOB_NAME}.tar.xz