Skip to contentSkip to conversation

CI: Build custom image for N1SDP optee-xtest

PATCH Applied [email protected] 2 participants 4 messages Sep 1, 2023 – Sep 6, 2023

lore
Share & tools
lore
#0 lore raw

cover CI: Build custom image for N1SDP optee-xtest

From: Anusmita Dutta Mazumder <[email protected]>

Build a custom N1SDP image with only optee-xtests as part of the image. A fresh custom image build is necessary to include the relevant test suite for running the xtests.

Anusmita Dutta Mazumder (2):
arm-bsp/n1sdp: Enable tests with pseudo trusted application
CI: Build custom image for N1SDP optee-xtest

 .gitlab-ci.yml                                       |  1 +
 ci/n1sdp-optee.yml                                   | 12 ++++++++++++
 .../recipes-security/optee/optee-os-n1sdp.inc        |  2 ++
 3 files changed, 15 insertions(+)
 create mode 100644 ci/n1sdp-optee.yml
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 arm-bsp/n1sdp: Enable tests with pseudo trusted application

From: Anusmita Dutta Mazumder <[email protected]>

Add the config needed to run the embedded tests with pseudo trusted application. Without this config, the optee-xtests with pseudo TA get skipped with “skip test, pseudo TA not found” message.

---
 meta-arm-bsp/recipes-security/optee/optee-os-n1sdp.inc | 2 ++
 1 file changed, 2 insertions(+)
meta-arm-bsp/recipes-security/optee/optee-os-n1sdp.inc +2 -0
index a40c93dc..80a11b53 100644
@@ -27,3 +27,5 @@ EXTRA_OEMAKE += " CFG_DT=y"
 EXTRA_OEMAKE += " CFG_SECURE_PARTITION=y"
 
 EXTRA_OEMAKE += " CFG_MAP_EXT_DT_SECURE=y"
+
+EXTRA_OEMAKE += " CFG_ENABLE_EMBEDDED_TESTS=y"
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/2 CI: Build custom image for N1SDP optee-xtest

In reply to [email protected]

From: Anusmita Dutta Mazumder <[email protected]>

Build a custom N1SDP image with only optee-xtests as part of the image. A fresh custom image build is necessary to include the relevant test suite for running the xtests.

---
 .gitlab-ci.yml     |  1 +
 ci/n1sdp-optee.yml | 12 ++++++++++++
 2 files changed, 13 insertions(+)
 create mode 100644 ci/n1sdp-optee.yml
.gitlab-ci.yml +1 -0
index 548b8e76..a2af8716 100644
@@ -154,6 +154,7 @@ n1sdp:
   parallel:
     matrix:
       - TS: [none, n1sdp-ts]
+      - OPTEE: [none, n1sdp-optee]
 
 qemu-generic-arm64:
   extends: .build
ci/n1sdp-optee.yml new file +12 -0
new file mode 100644
index 00000000..f2b50abf
@@ -0,0 +1,12 @@
+header:
+  version: 14
+
+# Config specific for the optee-xtests
+local_conf_header:
+  optee-test: |
+    # Include ARM FFA
+    MACHINE_FEATURES:append = " arm-ffa"
+    # Include trusted services
+    TEST_SUITES:append = " trusted_services"
+    # Include Optee xtests
+    IMAGE_INSTALL:append = " optee-test"
Signature · 1 line
2.34.1
Applied
#3 lore raw
In reply to [email protected]
Quoted 11 lines · On Fri, 01 Sep 2023 17:36:24 +0100, [email protected] wrote:

From: Anusmita Dutta Mazumder <[email protected]>

Build a custom N1SDP image with only optee-xtests as part of the image. A fresh custom image build is necessary to include the relevant test suite for running the xtests.

Anusmita Dutta Mazumder (2):
arm-bsp/n1sdp: Enable tests with pseudo trusted application
CI: Build custom image for N1SDP optee-xtest

[...]

Applied, thanks!

[1/2] arm-bsp/n1sdp: Enable tests with pseudo trusted application

      commit: 6ecdc3bc8bb0aa74390591eabeab14d771c258f5
[2/2] CI: Build custom image for N1SDP optee-xtest
      commit: 302cdd0a026bdf09c2508f24c4ec93427c375d87

Best regards,

Signature · 1 line
Jon Mason <[email protected]>