summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2022-09-22 10:26:09 -0700
committerArthur She <arthur.she@linaro.org>2022-09-22 10:26:09 -0700
commit255c2979d29ac50c9d19cd8cb5f2f1d5e6bc10ec (patch)
tree898680f52cc6de09d074b99a5cf9109d3a60974c
parentcc4d234c3ab790601d734866172176b4da9aa36c (diff)
Arthur: enable mt8192 LAVA testsmt8192-lava-test
Signed-off-by: Arthur She <arthur.she@linaro.org> Change-Id: Iebd3034d9ec21fa4fa254ecc051003805f3f156b
-rw-r--r--group/tf-l1-boot-tests-plat/mt8192-default:mt8192-depthcharge.bl316
-rw-r--r--mt8192_utils.sh23
-rw-r--r--run_config/mt8192-depthcharge.bl3110
-rwxr-xr-xscript/gen_mt8192_bl31_depthcharge_boot_yaml.sh64
4 files changed, 103 insertions, 0 deletions
diff --git a/group/tf-l1-boot-tests-plat/mt8192-default:mt8192-depthcharge.bl31 b/group/tf-l1-boot-tests-plat/mt8192-default:mt8192-depthcharge.bl31
new file mode 100644
index 00000000..aab47968
--- /dev/null
+++ b/group/tf-l1-boot-tests-plat/mt8192-default:mt8192-depthcharge.bl31
@@ -0,0 +1,6 @@
+#
+# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
diff --git a/mt8192_utils.sh b/mt8192_utils.sh
new file mode 100644
index 00000000..5c75239e
--- /dev/null
+++ b/mt8192_utils.sh
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+set -u
+
+gen_mt8192_yaml(){
+ local yaml_file="$workspace/mt8192.yaml"
+ local job_file="$workspace/job.yaml"
+ local payload_type="${payload_type:?}"
+
+ bin_mode="$mode" \
+ "$ci_root/script/gen_mt8192_${payload_type}_yaml.sh" > "$yaml_file"
+
+ cp "$yaml_file" "$job_file"
+ archive_file "$yaml_file"
+ archive_file "$job_file"
+}
+
+set +u
diff --git a/run_config/mt8192-depthcharge.bl31 b/run_config/mt8192-depthcharge.bl31
new file mode 100644
index 00000000..972a5c28
--- /dev/null
+++ b/run_config/mt8192-depthcharge.bl31
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+post_fetch_tf_resource() {
+ payload_type="bl31_depthcharge_boot" gen_mt8192_yaml
+}
diff --git a/script/gen_mt8192_bl31_depthcharge_boot_yaml.sh b/script/gen_mt8192_bl31_depthcharge_boot_yaml.sh
new file mode 100755
index 00000000..cf8e0fc1
--- /dev/null
+++ b/script/gen_mt8192_bl31_depthcharge_boot_yaml.sh
@@ -0,0 +1,64 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+# Generate a YAML file in order to dispatch Juno TFTF runs on LAVA. Note that
+# this script would produce a meaningful output when run via. Jenkins.
+#
+# $bin_mode must be set. This script outputs to STDOUT
+
+ci_root="$(readlink -f "$(dirname "$0")/..")"
+source "$ci_root/utils.sh"
+
+get_bl31_url() {
+ local bin_mode="${bin_mode:?}"
+
+ if upon "$jenkins_run"; then
+ echo "$jenkins_url/job/$JOB_NAME/$BUILD_NUMBER/artifact/artefacts/$bin_mode/bl31.elf"
+ else
+ echo "file://$workspace/artefacts/$bin_mode/bl31.elf"
+ fi
+}
+
+bl31_url="${bl31_url:-$(get_bl31_url)}"
+
+build_mode=$(echo $bin_mode | tr '[:lower:]' '[:upper:]')
+
+cat <<EOF
+device_type: mt8192-asurada-rev1
+job_name: MT8192 Chromebook BL31 depthcharge boot test - $build_mode
+timeouts:
+ job:
+ minutes: 30
+ action:
+ minutes: 2
+ connection:
+ minutes: 5
+priority: medium
+visibility: public
+actions:
+- deploy:
+ timeout:
+ minutes: 5
+ to: flasher
+ images:
+ image:
+ url: https://people.linaro.org/~theodore.grey/trusted-firmware/asurada_tf-a-ci_golden_image.bin.gz
+ bl31:
+ url: $bl31_url
+- boot:
+ timeout:
+ minutes: 2
+ method: minimal
+- test:
+ monitors:
+ - name: "BL31_boot_test"
+ start: "coreboot-TF-a-test_kukui"
+ end: "This is a TF-A test build. Halting"
+ pattern: "(?P<test_case_id>Starting depthcharge) on (?P<result>Kukui)"
+ fixupdict:
+ 'Kukui': pass
+EOF