summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2023-07-05 22:44:08 -0700
committerArthur She <arthur.she@linaro.org>2023-07-08 09:47:53 -0700
commit21e8cbedef34ea5d0ca47c39c60a717920356a3f (patch)
tree8f4ec782b67009e45486d80ed583d2119f78ee05
parent7e3d068d2dc8df294d9170afeb2130117d6c49bd (diff)
TF: N1SDP run simple boot test at OpenCIn1sdp
Signed-off-by: Arthur She <arthur.she@linaro.org>
-rw-r--r--arm-env.sh1
-rw-r--r--openci-env.sh1
-rw-r--r--openci-staging-env.sh1
-rw-r--r--run_config/n1sdp-fip.uefi8
-rw-r--r--run_config/n1sdp-linux8
-rw-r--r--script/lava-templates/n1sdp-boot.yaml51
6 files changed, 68 insertions, 2 deletions
diff --git a/arm-env.sh b/arm-env.sh
index efdac7b6..fdce21e0 100644
--- a/arm-env.sh
+++ b/arm-env.sh
@@ -12,6 +12,7 @@
nfs_volume="/arm"
jenkins_url="http://jenkins.oss.arm.com"
tfa_downloads="http://files.oss.arm.com/downloads/tf-a"
+ci_env="armci"
# Source repositories.
arm_gerrit_url="gerrit.oss.arm.com"
diff --git a/openci-env.sh b/openci-env.sh
index f96f584b..edaa68c6 100644
--- a/openci-env.sh
+++ b/openci-env.sh
@@ -12,3 +12,4 @@
nfs_volume="${WORKSPACE:?}/nfs"
jenkins_url="http://ci.trustedfirmware.org"
tfa_downloads="https://downloads.trustedfirmware.org/tf-a"
+ci_env="openci"
diff --git a/openci-staging-env.sh b/openci-staging-env.sh
index d975da4f..e64c8e4c 100644
--- a/openci-staging-env.sh
+++ b/openci-staging-env.sh
@@ -12,3 +12,4 @@
nfs_volume="${WORKSPACE:?}/nfs"
jenkins_url="http://ci.staging.trustedfirmware.org"
tfa_downloads="https://downloads.trustedfirmware.org/tf-a"
+ci_env="openci_staging"
diff --git a/run_config/n1sdp-fip.uefi b/run_config/n1sdp-fip.uefi
index ce9d6c50..023d7fad 100644
--- a/run_config/n1sdp-fip.uefi
+++ b/run_config/n1sdp-fip.uefi
@@ -14,6 +14,12 @@ post_tf_build() {
}
generate_lava_job(){
- target="n1sdp" payload_type="linux" gen_yaml_template
+ if [ "${ci_env}" = "armci" ]; then
+ payload_type="linux"
+ else
+ # Run simple boot test on OpenCI
+ payload_type="boot"
+ fi
+ target="n1sdp" payload_type="${payload_type}" gen_yaml_template
gen_n1sdp_yaml
}
diff --git a/run_config/n1sdp-linux b/run_config/n1sdp-linux
index 364982dc..5b4479ce 100644
--- a/run_config/n1sdp-linux
+++ b/run_config/n1sdp-linux
@@ -6,6 +6,12 @@
#
generate_lava_job(){
- target="n1sdp" payload_type="linux" gen_yaml_template
+ if [ "${ci_env}" = "armci" ]; then
+ payload_type="linux"
+ else
+ # Run simple boot test on OpenCi
+ payload_type="boot"
+ fi
+ target="n1sdp" payload_type="${payload_type}" gen_yaml_template
gen_n1sdp_yaml
}
diff --git a/script/lava-templates/n1sdp-boot.yaml b/script/lava-templates/n1sdp-boot.yaml
new file mode 100644
index 00000000..cb5fb717
--- /dev/null
+++ b/script/lava-templates/n1sdp-boot.yaml
@@ -0,0 +1,51 @@
+device_type: n1sdp
+job_name: tf-n1sdp TF-A boot test
+timeouts:
+ job:
+ minutes: 15
+ action:
+ minutes: 10
+ connection:
+ minutes: 5
+
+priority: ${LAVA_PRIORITY:-medium}
+visibility: public
+actions:
+#
+# Any firmware bundle deployed must be configured to boot automatically without
+# intervention. This means "PMIC_FORCE" must be set "TRUE" in the config file
+# to be deployed.
+#
+
+#
+# Deploy the primary board firmware bundle
+#
+- deploy:
+ namespace: recovery
+ to: flasher
+ images:
+ recovery_image:
+ url: $recovery_img_url
+ compression: zip
+
+- boot:
+ namespace: recovery
+ timeout:
+ minutes: 2
+ method: minimal
+
+- boot:
+ namespace: uart_one
+ method: new_connection
+ connection: uart1
+
+- test:
+ namespace: uart_one
+ connection-namespace: uart_one
+ timeout:
+ minutes: 5
+ interactive:
+ - name: int_1
+ prompts: ["Press ESCAPE for boot options"]
+ script:
+ - command: