diff options
author | Arthur She <arthur.she@linaro.org> | 2023-05-11 22:34:30 -0700 |
---|---|---|
committer | Arthur She <arthur.she@linaro.org> | 2023-05-17 21:40:39 -0700 |
commit | 130d9dd6f174a70275e2766f8cff6497cc2b8707 (patch) | |
tree | ca5cf7e682322645198e8955bf083851c61686d5 | |
parent | bf1b3b41d74f954a6fa4a0ea3d96c82a39ee903e (diff) |
Add Tomatoadd-tomato
Signed-off-by: Arthur She <arthur.she@linaro.org>
-rw-r--r-- | group/tf-l1-boot-tests-plat/mt8195-default:mt8195-depthcharge.bl31 | 6 | ||||
-rw-r--r-- | mt8195_utils.sh | 23 | ||||
-rw-r--r-- | run_config/mt8195-depthcharge.bl31 | 10 | ||||
-rwxr-xr-x | script/gen_mt8195_bl31_depthcharge_boot_yaml.sh | 67 |
4 files changed, 106 insertions, 0 deletions
diff --git a/group/tf-l1-boot-tests-plat/mt8195-default:mt8195-depthcharge.bl31 b/group/tf-l1-boot-tests-plat/mt8195-default:mt8195-depthcharge.bl31 new file mode 100644 index 00000000..5515958f --- /dev/null +++ b/group/tf-l1-boot-tests-plat/mt8195-default:mt8195-depthcharge.bl31 @@ -0,0 +1,6 @@ +# +# Copyright (c) 2023 Arm Limited. All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause +# + diff --git a/mt8195_utils.sh b/mt8195_utils.sh new file mode 100644 index 00000000..97a2fab6 --- /dev/null +++ b/mt8195_utils.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +# +# Copyright (c) 2023, Arm Limited. All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause +# + +set -u + +gen_mt8195_yaml(){ + local yaml_file="$workspace/mt8195.yaml" + local job_file="$workspace/job.yaml" + local payload_type="${payload_type:?}" + + bin_mode="$mode" \ + "$ci_root/script/gen_mt8195_${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/mt8195-depthcharge.bl31 b/run_config/mt8195-depthcharge.bl31 new file mode 100644 index 00000000..97907f17 --- /dev/null +++ b/run_config/mt8195-depthcharge.bl31 @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +# +# Copyright (c) 2023 Arm Limited. All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause +# + +generate_lava_job() { + payload_type="bl31_depthcharge_boot" gen_mt8195_yaml +} diff --git a/script/gen_mt8195_bl31_depthcharge_boot_yaml.sh b/script/gen_mt8195_bl31_depthcharge_boot_yaml.sh new file mode 100755 index 00000000..53385db7 --- /dev/null +++ b/script/gen_mt8195_bl31_depthcharge_boot_yaml.sh @@ -0,0 +1,67 @@ +#!/usr/bin/env bash +# +# Copyright (c) 2023 Arm Limited. All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause +# + +# Generate a YAML file in order to dispatch Tomato Chromebook 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: mt8195-cherry-tomato-r2 +job_name: MT8195 Tomato Chromebook BL31 depthcharge boot test - $build_mode +timeouts: + job: + minutes: 15 + action: + minutes: 10 + connection: + minutes: 5 +priority: medium +visibility: public +actions: +- deploy: + timeout: + minutes: 5 + to: flasher + images: + image: + url: https://images.validation.linaro.org/people.linaro.org/~arthur.she/images/chromebook/tomato/tomato_tf-a_golden_image.bin.gz + bl31: + url: $bl31_url +- boot: + timeout: + minutes: 5 + method: minimal +- test: + timeout: + minutes: 5 + interactive: + - name: int_1 + prompts: ["Starting depthcharge on Tomato"] + script: + - command: + - name: int_2 + prompts: ["This is a TF-A test build. Halting"] + script: + - command: |