aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2017-11-08 10:35:01 +0530
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-11-08 13:47:50 +0000
commitcf7632bae42ea2294726f98d2c544b51c0dd9ddc (patch)
tree357478487bef33d1bd1ef8c1c3b5a4292130c2f0
parentf8c67ea44a27dec43a215f2c9eac7596a2c3fda1 (diff)
lkft: android: enable vts-staging-kernel tests
Change-Id: Ib9bfc71cd6ef194d76b1f82c5b19b5f96d4fd09e Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r--lkft-hikey-aosp-4.4.yaml2
-rw-r--r--lkft-hikey-aosp-4.9.yaml2
-rw-r--r--lkft-lava-staging-aosp.yaml2
-rw-r--r--lkft/lava-job-definitions/hi6220-hikey/template-vts-staging-kernel.yaml132
4 files changed, 135 insertions, 3 deletions
diff --git a/lkft-hikey-aosp-4.4.yaml b/lkft-hikey-aosp-4.4.yaml
index aee62be3d7..7d0bccba7e 100644
--- a/lkft-hikey-aosp-4.4.yaml
+++ b/lkft-hikey-aosp-4.4.yaml
@@ -103,7 +103,7 @@
--qa-server-project android-hikey-linaro-4.4-aosp \
--git-commit ${QA_BUILD_VERSION} \
--template-path configs/lkft/lava-job-definitions \
- --template-names template-boot.yaml template-vts-kernel-part1.yaml template-vts-kernel-part2.yaml template-vts-kernel-part3.yaml template-vts-kernel-part4.yaml \
+ --template-names template-boot.yaml template-vts-kernel-part1.yaml template-vts-kernel-part2.yaml template-vts-kernel-part3.yaml template-vts-kernel-part4.yaml template-vts-staging-kernel.yaml \
--quiet
#for CTS_MODULE_NAME in CtsVmTestCases CtsLibcoreTestCases CtsBionicTestCases \
diff --git a/lkft-hikey-aosp-4.9.yaml b/lkft-hikey-aosp-4.9.yaml
index ca65bbabb8..a09cdddc6e 100644
--- a/lkft-hikey-aosp-4.9.yaml
+++ b/lkft-hikey-aosp-4.9.yaml
@@ -103,7 +103,7 @@
--qa-server-project android-hikey-linaro-4.9-aosp \
--git-commit ${QA_BUILD_VERSION} \
--template-path configs/lkft/lava-job-definitions \
- --template-names template-boot.yaml template-vts-kernel-part1.yaml template-vts-kernel-part2.yaml template-vts-kernel-part3.yaml template-vts-kernel-part4.yaml \
+ --template-names template-boot.yaml template-vts-kernel-part1.yaml template-vts-kernel-part2.yaml template-vts-kernel-part3.yaml template-vts-kernel-part4.yaml template-vts-staging-kernel.yaml \
--quiet
#for CTS_MODULE_NAME in CtsVmTestCases CtsLibcoreTestCases CtsBionicTestCases \
diff --git a/lkft-lava-staging-aosp.yaml b/lkft-lava-staging-aosp.yaml
index 28b60fdfbb..7d8e9b7f1f 100644
--- a/lkft-lava-staging-aosp.yaml
+++ b/lkft-lava-staging-aosp.yaml
@@ -84,7 +84,7 @@
--qa-server-project "aosp-${KERNEL_BRANCH}" \
--git-commit ${BUILD_NUMBER} \
--template-path configs/lkft/lava-job-definitions \
- --template-names template-boot.yaml template-vts-kernel-part1.yaml template-vts-kernel-part2.yaml template-vts-kernel-part3.yaml template-vts-kernel-part4.yaml \
+ --template-names template-boot.yaml template-vts-kernel-part1.yaml template-vts-kernel-part2.yaml template-vts-kernel-part3.yaml template-vts-kernel-part4.yaml template-vts-staging-kernel.yaml \
--quiet
# for CTS_MODULE_NAME in CtsVmTestCases CtsLibcoreTestCases CtsBionicTestCases \
diff --git a/lkft/lava-job-definitions/hi6220-hikey/template-vts-staging-kernel.yaml b/lkft/lava-job-definitions/hi6220-hikey/template-vts-staging-kernel.yaml
new file mode 100644
index 0000000000..87fe4aa0d7
--- /dev/null
+++ b/lkft/lava-job-definitions/hi6220-hikey/template-vts-staging-kernel.yaml
@@ -0,0 +1,132 @@
+device_type: hi6220-hikey
+job_name: "lkft-android-${KERNEL_BRANCH}-${BUILD_NUMBER}-vts-kernel-ltp-armeabi-v7a"
+
+timeouts:
+ job:
+ minutes: 540
+ action:
+ minutes: 15
+ connection:
+ minutes: 2
+priority: medium
+visibility:
+ group:
+ - lkft
+
+metadata:
+ android.build: "${BUILD_NUMBER}"
+ android.name: "${JOB_NAME}"
+ android.url: "${BUILD_URL}"
+ git branch: "${KERNEL_BRANCH}"
+ git repo: "${KERNEL_REPO}"
+ git commit: "${KERNEL_COMMIT}"
+ git describe: "${KERNEL_DESCRIBE}"
+ build-url: "${BUILD_URL}"
+ series: lkft
+
+protocols:
+ lava-lxc:
+ name: lxc-hikey-test
+ distribution: ubuntu
+ release: xenial
+ arch: amd64
+ verbose: true
+
+secrets:
+ ARTIFACTORIAL_TOKEN: "${ARTIFACTORIAL_TOKEN}"
+
+actions:
+- deploy:
+ namespace: tlxc
+ timeout:
+ minutes: 15
+ to: lxc
+ packages:
+ - wget
+ - unzip
+ os: debian
+
+- boot:
+ namespace: tlxc
+ prompts:
+ - 'root@(.*):/#'
+ - 'hikey:/'
+ timeout:
+ minutes: 5
+ method: lxc
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 10
+ definitions:
+ - from: inline
+ name: install-google-fastboot
+ path: inline/install-google-fastboot.yaml
+ repository:
+ metadata:
+ format: Lava-Test Test Definition 1.0
+ name: install-fastboot
+ description: "Install fastboot provided by google"
+ run:
+ steps:
+ - wget https://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip
+ - unzip platform-tools_r26.0.0-linux.zip
+ - ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot
+ - ln -s `pwd`/platform-tools/adb /usr/bin/adb
+ - fastboot --version
+
+- deploy:
+ timeout:
+ minutes: 15
+ to: fastboot
+ namespace: droid
+ images:
+ ptable:
+ url: http://builds.96boards.org/releases/reference-platform/aosp/hikey/16.03/bootloader/ptable-aosp-8g.img
+ reboot: hard-reset
+ boot:
+ url: "${DOWNLOAD_URL}/boot.img.xz"
+ compression: xz
+ reboot: hard-reset
+ cache:
+ url: "${REFERENCE_BUILD_URL}/cache.img.xz"
+ compression: xz
+ userdata:
+ url: "${REFERENCE_BUILD_URL}/userdata.img.xz"
+ compression: xz
+ system:
+ url: "${REFERENCE_BUILD_URL}/system.img.xz"
+ compression: xz
+ os: debian
+ protocols:
+ lava-lxc:
+ - action: fastboot-deploy
+ request: pre-power-command
+ timeout:
+ minutes: 2
+
+- boot:
+ namespace: droid
+ prompts:
+ - 'root@(.*):/#'
+ - 'hikey:/'
+ timeout:
+ minutes: 15
+ method: fastboot
+
+- test:
+ namespace: tlxc
+ connection: lxc
+ timeout:
+ minutes: 480
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/android/tradefed/tradefed.yaml
+ params:
+ TEST_URL: "http://testdata.validation.linaro.org/vts/209/android-vts.zip"
+ TEST_PARAMS: "run vts-staging-kernel --skip-device-info"
+ TEST_PATH: "android-vts"
+ RESULTS_FORMAT: "atomic"
+ name: vts-test