Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 3 | # Copyright (c) 2019-2021 Arm Limited. All rights reserved. |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
Paul Sokolovsky | ee5f4c1 | 2021-11-16 13:44:07 +0300 | [diff] [blame] | 8 | # Generate a FVP-TFTF model agnostic YAML template. Note that this template |
| 9 | # is not ready to be sent to LAVA by Jenkins. So in order to produce complete |
| 10 | # file, variables in {UPPERCASE} must be replaced to correct values. This |
| 11 | # file also includes references to ${UPPERCASE} which are just normal shell |
| 12 | # variables, replaced on spot. |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 13 | |
Paul Sokolovsky | 2d4cfdb | 2021-11-16 17:28:10 +0300 | [diff] [blame] | 14 | . $(dirname $0)/gen_gerrit_meta.sh |
| 15 | |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 16 | cat <<EOF |
Leonardo Sandoval | 5d87b70 | 2021-05-10 11:53:13 -0500 | [diff] [blame] | 17 | metadata: |
| 18 | test_config: {TEST_CONFIG} |
Paul Sokolovsky | fe78872 | 2021-11-12 15:16:49 +0300 | [diff] [blame] | 19 | fvp_model: {MODEL} |
Paul Sokolovsky | ee5f4c1 | 2021-11-16 13:44:07 +0300 | [diff] [blame] | 20 | build_url: ${BUILD_URL} |
Paul Sokolovsky | 2d4cfdb | 2021-11-16 17:28:10 +0300 | [diff] [blame] | 21 | ${gerrit_meta} |
Leonardo Sandoval | 5d87b70 | 2021-05-10 11:53:13 -0500 | [diff] [blame] | 22 | |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 23 | device_type: fvp |
Paul Sokolovsky | fe78872 | 2021-11-12 15:16:49 +0300 | [diff] [blame] | 24 | job_name: fvp-linux-{TEST_CONFIG} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 25 | |
| 26 | timeouts: |
| 27 | connection: |
Leonardo Sandoval | eff9c9b | 2021-10-14 10:45:43 -0500 | [diff] [blame] | 28 | seconds: 10 |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 29 | job: |
Leonardo Sandoval | 3f1430d | 2020-11-20 10:33:07 -0600 | [diff] [blame] | 30 | minutes: 30 |
Leonardo Sandoval | ea640a1 | 2021-10-11 15:30:47 -0500 | [diff] [blame] | 31 | action: |
| 32 | minutes: 20 |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 33 | actions: |
| 34 | auto-login-action: |
| 35 | minutes: 5 |
Leonardo Sandoval | ea640a1 | 2021-10-11 15:30:47 -0500 | [diff] [blame] | 36 | lava-test-monitor: |
| 37 | minutes: 5 |
| 38 | lava-test-interactive: |
Leonardo Sandoval | f356f67 | 2021-10-13 10:05:17 -0500 | [diff] [blame] | 39 | minutes: 15 |
Leonardo Sandoval | ea640a1 | 2021-10-11 15:30:47 -0500 | [diff] [blame] | 40 | lava-test-shell: |
| 41 | seconds: 300 |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 42 | http-download: |
| 43 | minutes: 2 |
| 44 | download-retry: |
| 45 | minutes: 2 |
| 46 | fvp-deploy: |
| 47 | minutes: 5 |
| 48 | |
| 49 | priority: medium |
| 50 | visibility: public |
| 51 | |
| 52 | actions: |
| 53 | - deploy: |
| 54 | to: fvp |
| 55 | images: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 56 | backup_fip: |
| 57 | url: {BACKUP_FIP} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 58 | bl1: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 59 | url: {BL1} |
| 60 | bl2: |
| 61 | url: {BL2} |
| 62 | bl31: |
| 63 | url: {BL31} |
| 64 | bl32: |
| 65 | url: {BL32} |
Leonardo Sandoval | df9c92f | 2021-03-12 11:31:09 -0600 | [diff] [blame] | 66 | busybox: |
| 67 | url: {BUSYBOX} |
| 68 | compression: gz |
| 69 | cactus_primary: |
| 70 | url: {CACTUS_PRIMARY} |
| 71 | cactus_secondary: |
| 72 | url: {CACTUS_SECONDARY} |
| 73 | cactus_tertiary: |
| 74 | url: {CACTUS_TERTIARY} |
Leonardo Sandoval | d98f833 | 2021-04-13 16:46:38 -0500 | [diff] [blame] | 75 | coverage_trace_plugin: |
| 76 | url: {COVERAGE_TRACE_PLUGIN} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 77 | dtb: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 78 | url: {DTB} |
| 79 | el3_payload: |
| 80 | url: {EL3_PAYLOAD} |
Leonardo Sandoval | b1fb634 | 2021-11-18 15:34:25 -0600 | [diff] [blame] | 81 | fvp_spmc_manifest_dtb: |
| 82 | url: {FVP_SPMC_MANIFEST_DTB} |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 83 | fip: |
| 84 | url: {FIP} |
Leonardo Sandoval | cc52beb | 2021-05-05 19:05:31 -0500 | [diff] [blame] | 85 | fip_gpt: |
| 86 | url: {FIP_GPT} |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 87 | fwu_fip: |
| 88 | url: {FWU_FIP} |
Leonardo Sandoval | df9c92f | 2021-03-12 11:31:09 -0600 | [diff] [blame] | 89 | generic_trace: |
| 90 | url: {GENERIC_TRACE} |
| 91 | hafnium: |
| 92 | url: {HAFNIUM} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 93 | image: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 94 | url: {IMAGE} |
Leonardo Sandoval | b1fb634 | 2021-11-18 15:34:25 -0600 | [diff] [blame] | 95 | ivy: |
| 96 | url: {IVY} |
| 97 | manifest_dtb: |
| 98 | url: {MANIFEST_DTB} |
Leonardo Sandoval | df9c92f | 2021-03-12 11:31:09 -0600 | [diff] [blame] | 99 | mcp_rom: |
| 100 | url: {MCP_ROM} |
| 101 | mcp_rom_hyphen: |
| 102 | url: {MCP_ROM_HYPHEN} |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 103 | ns_bl1u: |
| 104 | url: {NS_BL1U} |
| 105 | ns_bl2u: |
| 106 | url: {NS_BL2U} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 107 | ramdisk: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 108 | url: {RAMDISK} |
| 109 | romlib: |
| 110 | url: {ROMLIB} |
| 111 | rootfs: |
| 112 | url: {ROOTFS} |
| 113 | compression: gz |
Leonardo Sandoval | df9c92f | 2021-03-12 11:31:09 -0600 | [diff] [blame] | 114 | secure_hafnium: |
| 115 | url: {SECURE_HAFNIUM} |
| 116 | scp_ram: |
| 117 | url: {SCP_RAM} |
| 118 | scp_ram_hyphen: |
| 119 | url: {SCP_RAM_HYPHEN} |
| 120 | scp_rom: |
| 121 | url: {SCP_ROM} |
| 122 | scp_rom_hyphen: |
| 123 | url: {SCP_ROM_HYPHEN} |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 124 | spm: |
| 125 | url: {SPM} |
| 126 | tftf: |
| 127 | url: {TFTF} |
| 128 | tmp: |
| 129 | url: {TMP} |
| 130 | uboot: |
| 131 | url: {UBOOT} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 132 | |
| 133 | - boot: |
| 134 | method: fvp |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 135 | license_variable: ARMLMD_LICENSE_FILE={ARMLMD_LICENSE_FILE} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 136 | docker: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 137 | name: {BOOT_DOCKER_NAME} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 138 | local: true |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 139 | image: {BOOT_IMAGE_DIR}/{BOOT_IMAGE_BIN} |
| 140 | version_string: {BOOT_VERSION_STRING} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 141 | console_string: 'terminal_0: Listening for serial connection on port (?P<PORT>\d+)' |
Leonardo Sandoval | ce3783b | 2021-03-05 12:04:02 -0600 | [diff] [blame] | 142 | feedbacks: |
| 143 | - '(?P<NAME>terminal_1): Listening for serial connection on port (?P<PORT>\d+)' |
| 144 | - '(?P<NAME>terminal_2): Listening for serial connection on port (?P<PORT>\d+)' |
| 145 | - '(?P<NAME>terminal_3): Listening for serial connection on port (?P<PORT>\d+)' |
Leonardo Sandoval | 44ac9aa | 2020-11-09 12:55:57 -0600 | [diff] [blame] | 146 | timeout: |
| 147 | minutes: 30 |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 148 | arguments: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 149 | {BOOT_ARGUMENTS} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 150 | EOF |