blob: ddf46f35c1b7b17cf6444dfc1d755d47c15d3438 [file] [log] [blame]
Leonardo Sandovald76d1e22020-10-06 16:02:52 -05001#!/usr/bin/env bash
2#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05003# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Leonardo Sandovald76d1e22020-10-06 16:02:52 -05004#
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
12cat <<EOF
13device_type: fvp
Leonardo Sandoval44ac9aa2020-11-09 12:55:57 -060014job_name: fvp-tftf
Leonardo Sandovald76d1e22020-10-06 16:02:52 -050015
16timeouts:
17 connection:
18 minutes: 3
19 job:
20 minutes: 10
21 actions:
22 auto-login-action:
23 minutes: 5
24 http-download:
25 minutes: 2
26 download-retry:
27 minutes: 2
28 fvp-deploy:
29 minutes: 5
30
31priority: medium
32visibility: public
33
34actions:
35- deploy:
36 to: fvp
37 images:
38 bl1:
39 url: \${ACTIONS_DEPLOY_IMAGES_BL1}
40 fip:
41 url: \${ACTIONS_DEPLOY_IMAGES_FIP}
42 ns_bl1u:
43 url: \${ACTIONS_DEPLOY_IMAGES_NS_BL1U}
44 ns_bl2u:
45 url: \${ACTIONS_DEPLOY_IMAGES_NS_BL2U}
Leonardo Sandoval44ac9aa2020-11-09 12:55:57 -060046 el3_payload:
47 url: \${ACTIONS_DEPLOY_IMAGES_EL3_PAYLOAD}
Leonardo Sandovald76d1e22020-10-06 16:02:52 -050048
49- boot:
50 method: fvp
Leonardo Sandovalbe690bd2020-10-12 17:59:39 -050051 license_variable: ARMLMD_LICENSE_FILE=\${ARMLMD_LICENSE_FILE}
Leonardo Sandovald76d1e22020-10-06 16:02:52 -050052 docker:
53 name: \${BOOT_DOCKER_NAME}
54 local: true
Leonardo Sandoval5d90dff2020-10-12 17:59:39 -050055 image: \${BOOT_IMAGE_DIR}/\${BOOT_IMAGE_BIN}
Leonardo Sandovald76d1e22020-10-06 16:02:52 -050056 version_string: \${BOOT_VERSION_STRING}
Leonardo Sandoval44ac9aa2020-11-09 12:55:57 -060057 console_string: 'terminal_0: Listening for serial connection on port (?P<PORT>\d+)'
58 timeout:
59 minutes: 30
60
61 arguments:
62\${BOOT_ARGUMENTS}
63
64- test:
Leonardo Sandovald76d1e22020-10-06 16:02:52 -050065 timeout:
66 minutes: 30
67
68 monitors:
69 - name: TFTF
70 # LAVA looks for a testsuite start string...
71 start: 'Booting trusted firmware test framework'
72 # ...and a testsuite end string.
73 end: 'Exiting tests.'
74
75 # For each test case, LAVA looks for a string which includes the testcase
76 # name and result.
77 pattern: "(?s)> Executing '(?P<test_case_id>.+?(?='))'(.*) TEST COMPLETE\\\s+(?P<result>(Skipped|Passed|Failed|Crashed))"
78
79 # Teach to LAVA how to interpret the TFTF Tests results.
80 fixupdict:
81 Passed: pass
82 Failed: fail
83 Crashed: fail
84 Skipped: skip
85
Leonardo Sandovald76d1e22020-10-06 16:02:52 -050086EOF