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 | |
| 8 | # Generate a FVP-TFTF model agnostic YAML template. Note that this template is not ready to be |
| 9 | # sent to LAVA by Jenkins so in order to produce file, variables in ${UPPERCASE} must be replaced |
| 10 | # to correct values |
| 11 | |
| 12 | cat <<EOF |
| 13 | device_type: fvp |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 14 | job_name: fvp-tftf-{MODEL} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 15 | |
| 16 | timeouts: |
| 17 | connection: |
| 18 | minutes: 3 |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 19 | connections: |
| 20 | lava-test-monitor: |
| 21 | minutes: 10 |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 22 | job: |
Leonardo Sandoval | 3f1430d | 2020-11-20 10:33:07 -0600 | [diff] [blame] | 23 | minutes: 60 |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 24 | actions: |
| 25 | auto-login-action: |
| 26 | minutes: 5 |
| 27 | http-download: |
| 28 | minutes: 2 |
| 29 | download-retry: |
| 30 | minutes: 2 |
| 31 | fvp-deploy: |
| 32 | minutes: 5 |
| 33 | |
| 34 | priority: medium |
| 35 | visibility: public |
| 36 | |
| 37 | actions: |
| 38 | - deploy: |
| 39 | to: fvp |
| 40 | images: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 41 | backup_fip: |
| 42 | url: {BACKUP_FIP} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 43 | bl1: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 44 | url: {BL1} |
| 45 | bl2: |
| 46 | url: {BL2} |
| 47 | bl31: |
| 48 | url: {BL31} |
| 49 | bl32: |
| 50 | url: {BL32} |
Leonardo Sandoval | df9c92f | 2021-03-12 11:31:09 -0600 | [diff] [blame^] | 51 | busybox: |
| 52 | url: {BUSYBOX} |
| 53 | compression: gz |
| 54 | cactus_primary: |
| 55 | url: {CACTUS_PRIMARY} |
| 56 | cactus_secondary: |
| 57 | url: {CACTUS_SECONDARY} |
| 58 | cactus_tertiary: |
| 59 | url: {CACTUS_TERTIARY} |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 60 | dtb: |
| 61 | url: {DTB} |
Leonardo Sandoval | 44ac9aa | 2020-11-09 12:55:57 -0600 | [diff] [blame] | 62 | el3_payload: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 63 | url: {EL3_PAYLOAD} |
| 64 | fip: |
| 65 | url: {FIP} |
| 66 | fwu_fip: |
| 67 | url: {FWU_FIP} |
Leonardo Sandoval | df9c92f | 2021-03-12 11:31:09 -0600 | [diff] [blame^] | 68 | generic_trace: |
| 69 | url: {GENERIC_TRACE} |
| 70 | hafnium: |
| 71 | url: {HAFNIUM} |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 72 | image: |
| 73 | url: {IMAGE} |
Leonardo Sandoval | df9c92f | 2021-03-12 11:31:09 -0600 | [diff] [blame^] | 74 | mcp_rom: |
| 75 | url: {MCP_ROM} |
| 76 | mcp_rom_hyphen: |
| 77 | url: {MCP_ROM_HYPHEN} |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 78 | ns_bl1u: |
| 79 | url: {NS_BL1U} |
| 80 | ns_bl2u: |
| 81 | url: {NS_BL2U} |
| 82 | ramdisk: |
| 83 | url: {RAMDISK} |
| 84 | romlib: |
| 85 | url: {ROMLIB} |
| 86 | rootfs: |
| 87 | url: {ROOTFS} |
| 88 | compression: gz |
Leonardo Sandoval | df9c92f | 2021-03-12 11:31:09 -0600 | [diff] [blame^] | 89 | secure_hafnium: |
| 90 | url: {SECURE_HAFNIUM} |
| 91 | scp_ram: |
| 92 | url: {SCP_RAM} |
| 93 | scp_ram_hyphen: |
| 94 | url: {SCP_RAM_HYPHEN} |
| 95 | scp_rom: |
| 96 | url: {SCP_ROM} |
| 97 | scp_rom_hyphen: |
| 98 | url: {SCP_ROM_HYPHEN} |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 99 | spm: |
| 100 | url: {SPM} |
| 101 | tftf: |
| 102 | url: {TFTF} |
| 103 | tmp: |
| 104 | url: {TMP} |
| 105 | uboot: |
| 106 | url: {UBOOT} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 107 | |
| 108 | - boot: |
| 109 | method: fvp |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 110 | license_variable: ARMLMD_LICENSE_FILE={ARMLMD_LICENSE_FILE} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 111 | docker: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 112 | name: {BOOT_DOCKER_NAME} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 113 | local: true |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 114 | image: {BOOT_IMAGE_DIR}/{BOOT_IMAGE_BIN} |
| 115 | version_string: {BOOT_VERSION_STRING} |
Leonardo Sandoval | 44ac9aa | 2020-11-09 12:55:57 -0600 | [diff] [blame] | 116 | 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] | 117 | feedbacks: |
| 118 | - '(?P<NAME>terminal_1): Listening for serial connection on port (?P<PORT>\d+)' |
| 119 | - '(?P<NAME>terminal_2): Listening for serial connection on port (?P<PORT>\d+)' |
| 120 | - '(?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] | 121 | arguments: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame] | 122 | {BOOT_ARGUMENTS} |
Leonardo Sandoval | 44ac9aa | 2020-11-09 12:55:57 -0600 | [diff] [blame] | 123 | |
| 124 | - test: |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 125 | timeout: |
| 126 | minutes: 30 |
| 127 | |
| 128 | monitors: |
| 129 | - name: TFTF |
| 130 | # LAVA looks for a testsuite start string... |
| 131 | start: 'Booting trusted firmware test framework' |
| 132 | # ...and a testsuite end string. |
| 133 | end: 'Exiting tests.' |
| 134 | |
| 135 | # For each test case, LAVA looks for a string which includes the testcase |
| 136 | # name and result. |
| 137 | pattern: "(?s)> Executing '(?P<test_case_id>.+?(?='))'(.*) TEST COMPLETE\\\s+(?P<result>(Skipped|Passed|Failed|Crashed))" |
| 138 | |
| 139 | # Teach to LAVA how to interpret the TFTF Tests results. |
| 140 | fixupdict: |
| 141 | Passed: pass |
| 142 | Failed: fail |
| 143 | Crashed: fail |
| 144 | Skipped: skip |
| 145 | |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 146 | EOF |