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 | |
| 14 | cat <<EOF |
Leonardo Sandoval | 5d87b70 | 2021-05-10 11:53:13 -0500 | [diff] [blame] | 15 | metadata: |
| 16 | test_config: {TEST_CONFIG} |
Paul Sokolovsky | fe78872 | 2021-11-12 15:16:49 +0300 | [diff] [blame] | 17 | fvp_model: {MODEL} |
Paul Sokolovsky | ee5f4c1 | 2021-11-16 13:44:07 +0300 | [diff] [blame^] | 18 | build_url: ${BUILD_URL} |
Leonardo Sandoval | 5d87b70 | 2021-05-10 11:53:13 -0500 | [diff] [blame] | 19 | |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 20 | device_type: fvp |
Paul Sokolovsky | fe78872 | 2021-11-12 15:16:49 +0300 | [diff] [blame] | 21 | job_name: {TEST_CONFIG} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 22 | |
| 23 | timeouts: |
Leonardo Sandoval | 5bdfd67 | 2021-05-19 16:49:33 -0500 | [diff] [blame] | 24 | job: |
Leonardo Sandoval | aac558f | 2021-10-01 14:17:30 -0500 | [diff] [blame] | 25 | minutes: 30 |
Leonardo Sandoval | 5bdfd67 | 2021-05-19 16:49:33 -0500 | [diff] [blame] | 26 | action: |
Leonardo Sandoval | aac558f | 2021-10-01 14:17:30 -0500 | [diff] [blame] | 27 | minutes: 20 |
Leonardo Sandoval | 5bdfd67 | 2021-05-19 16:49:33 -0500 | [diff] [blame] | 28 | actions: |
| 29 | auto-login-action: |
| 30 | seconds: 300 |
| 31 | lava-test-monitor: |
Leonardo Sandoval | aac558f | 2021-10-01 14:17:30 -0500 | [diff] [blame] | 32 | minutes: 5 |
| 33 | lava-test-interactive: |
| 34 | minutes: 5 |
Leonardo Sandoval | 5bdfd67 | 2021-05-19 16:49:33 -0500 | [diff] [blame] | 35 | lava-test-shell: |
| 36 | seconds: 300 |
| 37 | lava-test-retry: |
| 38 | seconds: 300 |
| 39 | http-download: |
| 40 | seconds: 120 |
| 41 | download-retry: |
| 42 | seconds: 120 |
| 43 | fvp-deploy: |
| 44 | seconds: 300 |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 45 | connection: |
Leonardo Sandoval | eff9c9b | 2021-10-14 10:45:43 -0500 | [diff] [blame] | 46 | seconds: 10 |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 47 | connections: |
Leonardo Sandoval | 5bdfd67 | 2021-05-19 16:49:33 -0500 | [diff] [blame] | 48 | lava-test-retry: |
| 49 | seconds: 300 |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 50 | lava-test-monitor: |
Leonardo Sandoval | 5bdfd67 | 2021-05-19 16:49:33 -0500 | [diff] [blame] | 51 | seconds: 300 |
| 52 | lava-test-shell: |
| 53 | seconds: 300 |
| 54 | bootloader-action: |
| 55 | seconds: 300 |
| 56 | bootloader-retry: |
| 57 | seconds: 300 |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 58 | |
| 59 | priority: medium |
| 60 | visibility: public |
| 61 | |
| 62 | actions: |
| 63 | - deploy: |
| 64 | to: fvp |
| 65 | images: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 66 | backup_fip: |
| 67 | url: {BACKUP_FIP} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 68 | bl1: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 69 | url: {BL1} |
| 70 | bl2: |
| 71 | url: {BL2} |
| 72 | bl31: |
| 73 | url: {BL31} |
| 74 | bl32: |
| 75 | url: {BL32} |
Leonardo Sandoval | df9c92f | 2021-03-12 11:31:09 -0600 | [diff] [blame] | 76 | busybox: |
| 77 | url: {BUSYBOX} |
| 78 | compression: gz |
| 79 | cactus_primary: |
| 80 | url: {CACTUS_PRIMARY} |
| 81 | cactus_secondary: |
| 82 | url: {CACTUS_SECONDARY} |
| 83 | cactus_tertiary: |
| 84 | url: {CACTUS_TERTIARY} |
Leonardo Sandoval | d98f833 | 2021-04-13 16:46:38 -0500 | [diff] [blame] | 85 | coverage_trace_plugin: |
| 86 | url: {COVERAGE_TRACE_PLUGIN} |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 87 | dtb: |
| 88 | url: {DTB} |
Leonardo Sandoval | 44ac9aa | 2020-11-09 12:55:57 -0600 | [diff] [blame] | 89 | el3_payload: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 90 | url: {EL3_PAYLOAD} |
| 91 | fip: |
| 92 | url: {FIP} |
Leonardo Sandoval | cc52beb | 2021-05-05 19:05:31 -0500 | [diff] [blame] | 93 | fip_gpt: |
| 94 | url: {FIP_GPT} |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 95 | fwu_fip: |
| 96 | url: {FWU_FIP} |
Leonardo Sandoval | df9c92f | 2021-03-12 11:31:09 -0600 | [diff] [blame] | 97 | generic_trace: |
| 98 | url: {GENERIC_TRACE} |
| 99 | hafnium: |
| 100 | url: {HAFNIUM} |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 101 | image: |
| 102 | url: {IMAGE} |
Leonardo Sandoval | df9c92f | 2021-03-12 11:31:09 -0600 | [diff] [blame] | 103 | mcp_rom: |
| 104 | url: {MCP_ROM} |
| 105 | mcp_rom_hyphen: |
| 106 | url: {MCP_ROM_HYPHEN} |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 107 | ns_bl1u: |
| 108 | url: {NS_BL1U} |
| 109 | ns_bl2u: |
| 110 | url: {NS_BL2U} |
| 111 | ramdisk: |
| 112 | url: {RAMDISK} |
| 113 | romlib: |
| 114 | url: {ROMLIB} |
| 115 | rootfs: |
| 116 | url: {ROOTFS} |
| 117 | compression: gz |
Leonardo Sandoval | df9c92f | 2021-03-12 11:31:09 -0600 | [diff] [blame] | 118 | secure_hafnium: |
| 119 | url: {SECURE_HAFNIUM} |
| 120 | scp_ram: |
| 121 | url: {SCP_RAM} |
| 122 | scp_ram_hyphen: |
| 123 | url: {SCP_RAM_HYPHEN} |
| 124 | scp_rom: |
| 125 | url: {SCP_ROM} |
| 126 | scp_rom_hyphen: |
| 127 | url: {SCP_ROM_HYPHEN} |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 128 | spm: |
| 129 | url: {SPM} |
| 130 | tftf: |
| 131 | url: {TFTF} |
| 132 | tmp: |
| 133 | url: {TMP} |
| 134 | uboot: |
| 135 | url: {UBOOT} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 136 | |
| 137 | - boot: |
| 138 | method: fvp |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 139 | license_variable: ARMLMD_LICENSE_FILE={ARMLMD_LICENSE_FILE} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 140 | docker: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 141 | name: {BOOT_DOCKER_NAME} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 142 | local: true |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 143 | image: {BOOT_IMAGE_DIR}/{BOOT_IMAGE_BIN} |
| 144 | version_string: {BOOT_VERSION_STRING} |
Leonardo Sandoval | 44ac9aa | 2020-11-09 12:55:57 -0600 | [diff] [blame] | 145 | 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] | 146 | feedbacks: |
| 147 | - '(?P<NAME>terminal_1): Listening for serial connection on port (?P<PORT>\d+)' |
| 148 | - '(?P<NAME>terminal_2): Listening for serial connection on port (?P<PORT>\d+)' |
| 149 | - '(?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] | 150 | arguments: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 151 | {BOOT_ARGUMENTS} |
Leonardo Sandoval | 44ac9aa | 2020-11-09 12:55:57 -0600 | [diff] [blame] | 152 | |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 153 | EOF |