aboutsummaryrefslogtreecommitdiff
path: root/optee
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2017-10-31 19:31:03 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2017-10-31 18:12:20 +0000
commit4fb958210397898696f0307866b48903dd7d99df (patch)
tree82dd12c684f1310c597a7871168e3b7404d06702 /optee
parent9417a9c29e8aed521960bad63ea606ea5c9db607 (diff)
optee-build: submit LAVA job to Juno
As we don't need bl0 binary, don't publish it. Change-Id: Ib5f01343e2c2bad6814db998848858a31f417a2e Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'optee')
-rw-r--r--optee/build/lava-job-definitions/juno/template-optee-xtest.yaml87
-rwxr-xr-xoptee/build/publishers.sh1
2 files changed, 87 insertions, 1 deletions
diff --git a/optee/build/lava-job-definitions/juno/template-optee-xtest.yaml b/optee/build/lava-job-definitions/juno/template-optee-xtest.yaml
new file mode 100644
index 00000000..c37627f1
--- /dev/null
+++ b/optee/build/lava-job-definitions/juno/template-optee-xtest.yaml
@@ -0,0 +1,87 @@
+context:
+ # Override for Juno device type. SWG build is using VExpress64#
+ bootloader_prompt: VExpress64#
+
+device_type: juno
+job_name: optee-xtest-juno-${BUILD_NUMBER}
+timeouts:
+ job:
+ minutes: 30
+ action:
+ minutes: 10
+priority: medium
+visibility: public
+
+metadata:
+ git branch: ${GIT_BRANCH}
+ git repo: ${GIT_URL}
+ git commit: ${GIT_COMMIT}
+ build url: ${BUILD_URL}
+ build location: ${PUBLISH_SERVER}${PUB_DEST}
+
+actions:
+# Deploy the recovery image
+- deploy:
+ namespace: recovery
+ timeout:
+ minutes: 10
+ to: vemsd
+ recovery_image:
+ # Use a modified version based on ARM LT release
+ url: ${PUBLISH_SERVER}${PUB_DEST}/juno-oe-uboot.zip
+ compression: zip
+
+# Deploy the kernel/dtb/ramdisk for TFTP boot
+- deploy:
+ namespace: busybox
+ timeout:
+ minutes: 2
+ to: tftp
+ os: oe
+ kernel:
+ url: ${PUBLISH_SERVER}${PUB_DEST}/Image
+ type: image
+ dtb:
+ url: ${PUBLISH_SERVER}${PUB_DEST}/juno.dtb
+ ramdisk:
+ url: ${PUBLISH_SERVER}${PUB_DEST}/ramdisk.img
+ compression: gz
+ header: u-boot
+
+- boot:
+ namespace: busybox
+ connection-namespace: recovery
+ method: u-boot
+ # Boot from ramdisk instead of NOR flash (norflash)
+ # because it's the one modified with lava-overlay installed
+ commands: ramdisk
+ auto_login:
+ login_prompt: 'Please press Enter to activate this console.'
+ # Simulate pressing enter because username is required by lava
+ username: ''
+ prompts:
+ - root@(.*):/
+
+- test:
+ namespace: busybox
+ connection-namespace: recovery
+ timeout:
+ minutes: 30
+ definitions:
+ - from: inline
+ repository:
+ metadata:
+ format: Lava-Test Test Definition 1.0
+ name: optee-xtest-juno
+ description: "OP-TEE sanity test suite using Juno"
+ run:
+ steps:
+ - xtest
+ parse:
+ pattern: "(?P<test_case_id>regression_[0-9.]+)\\s+(?P<result>(OK|FAILED|SKIPPED))"
+ fixupdict:
+ OK: pass
+ FAILED: fail
+ SKIPPED: skip
+ name: optee-xtest
+ path: inline/optee-xtest-juno.yaml
diff --git a/optee/build/publishers.sh b/optee/build/publishers.sh
index c0c29370..6d0eb8e7 100755
--- a/optee/build/publishers.sh
+++ b/optee/build/publishers.sh
@@ -8,7 +8,6 @@ cp -a \
${WORKSPACE}/${repo_proj}/gen_rootfs/ramdisk.img \
${WORKSPACE}/${repo_proj}/linux/arch/arm64/boot/Image \
${WORKSPACE}/${repo_proj}/linux/arch/arm64/boot/dts/arm/juno*.dtb \
- ${WORKSPACE}/${repo_proj}/vexpress-firmware/SOFTWARE/bl0.bin \
${WORKSPACE}/out-publish/
# Create new recovery image