blob: ff897da492b9b87afe447aee4f3f0fc17539b947 [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
14job_name: tf-fvp
15
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}
46
47- boot:
48 method: fvp
Leonardo Sandovalbe690bd2020-10-12 17:59:39 -050049 license_variable: ARMLMD_LICENSE_FILE=\${ARMLMD_LICENSE_FILE}
Leonardo Sandovald76d1e22020-10-06 16:02:52 -050050 docker:
51 name: \${BOOT_DOCKER_NAME}
52 local: true
Leonardo Sandoval5d90dff2020-10-12 17:59:39 -050053 image: \${BOOT_IMAGE_DIR}/\${BOOT_IMAGE_BIN}
Leonardo Sandovald76d1e22020-10-06 16:02:52 -050054 version_string: \${BOOT_VERSION_STRING}
55 timeout:
56 minutes: 30
57
58 monitors:
59 - name: TFTF
60 # LAVA looks for a testsuite start string...
61 start: 'Booting trusted firmware test framework'
62 # ...and a testsuite end string.
63 end: 'Exiting tests.'
64
65 # For each test case, LAVA looks for a string which includes the testcase
66 # name and result.
67 pattern: "(?s)> Executing '(?P<test_case_id>.+?(?='))'(.*) TEST COMPLETE\\\s+(?P<result>(Skipped|Passed|Failed|Crashed))"
68
69 # Teach to LAVA how to interpret the TFTF Tests results.
70 fixupdict:
71 Passed: pass
72 Failed: fail
73 Crashed: fail
74 Skipped: skip
75
76 arguments:
77\${BOOT_ARGUMENTS}
78
79EOF