diff options
author | Chase Qi <chase.qi@linaro.org> | 2016-04-13 18:20:29 +0800 |
---|---|---|
committer | Chase Qi <chase.qi@linaro.org> | 2016-04-14 16:38:20 +0800 |
commit | 72f8557aab0adfefb57be56a617843b6496c9e85 (patch) | |
tree | e830a8b6b32aa6d85c716788399627b993031275 | |
parent | b0de0286616aa9389165f992cae85ae3835d3336 (diff) |
Added support for WA2 Linux local run
Run WA2 on Linux through loopback interface on local device.
Change-Id: I1da12c1bb42c7559a523bae277f0ea3bd21cc651
Signed-off-by: Chase Qi <chase.qi@linaro.org>
-rwxr-xr-x | templates/config-generic-linux-local.py | 24 | ||||
-rwxr-xr-x | templates/generic-linux.yaml | 2 | ||||
-rw-r--r-- | wa2-linux-local.yaml | 44 |
3 files changed, 69 insertions, 1 deletions
diff --git a/templates/config-generic-linux-local.py b/templates/config-generic-linux-local.py new file mode 100755 index 0000000..455d447 --- /dev/null +++ b/templates/config-generic-linux-local.py @@ -0,0 +1,24 @@ +reboot_policy = 'never' +execution_order = 'by_iteration' +instrumentation = [ + 'execution_time', +] +result_processors = [ + 'standard', + 'csv', + 'json', + 'sqlite' +] +logging = { + 'file format': '%(asctime)s %(levelname)-8s %(name)s: %(message)s', + 'verbose format': '%(asctime)s %(levelname)-8s %(name)s: %(message)s', + 'regular format': '%(levelname)-8s %(message)s', + 'colour_enabled': True, +} + +device = 'generic_linux' +device_config = dict( + host = '127.0.0.1', + username = 'root', + password = 'linarolinaro' +) diff --git a/templates/generic-linux.yaml b/templates/generic-linux.yaml index e2d7a00..af91de5 100755 --- a/templates/generic-linux.yaml +++ b/templates/generic-linux.yaml @@ -1,7 +1,7 @@ config: instrumentation: [~execution_time] result_processors: [sqlite] - sqlite_database: ~/.workload_automation/wa_results.db + sqlite_database: /root/db_results/workload-automation.db workloads: - id: cyclictest name: cyclictest 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 |