-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhafnium-spmc-test-fvp.yaml
93 lines (90 loc) · 3.08 KB
/
hafnium-spmc-test-fvp.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
- job:
name: hafnium-spmc-test-fvp
project-type: freestyle
defaults: global
properties:
- build-discarder:
days-to-keep: 90
num-to-keep: 90
parameters:
- string:
name: FVP_MODEL_ARCHIVE_NAME
default: 'FVP_Base_RevC-2xAEMvA_11.27_19_Linux64.tgz'
- string:
name: FVP_MODEL_URL
default: 'https://developer.arm.com/-/cdn-downloads/permalink/Fixed-Virtual-Platforms/FM-11.27'
- bool:
name: RUN_ASSERT_DISABLED_BUILD
description: "Run tests with asserts disabled in addition to the asserts enabled build"
default: true
disabled: false
node: docker-amd64-hafnium-focal
concurrent: true
display-name: 'Hafnium builder (FVP)'
scm:
- git:
url: https://review.trustedfirmware.org/${GERRIT_PROJECT}
refspec: ${GERRIT_REFSPEC}
name: origin
branches:
- ${GERRIT_BRANCH}
choosing-strategy: gerrit
skip-tag: true
shallow-clone: true
wipe-workspace: false
submodule:
recursive: true
triggers:
- gerrit:
server-name: 'review.trustedfirmware.org'
override-votes: true
gerrit-build-successful-verified-value: 1
gerrit-build-failed-verified-value: -1
gerrit-build-successful-codereview-value: 0
gerrit-build-failed-codereview-value: 0
trigger-on:
- comment-added-event:
approval-category: 'Allow-CI'
approval-value: '1'
projects:
- project-compare-type: 'PLAIN'
project-pattern: 'hafnium/hafnium'
branches:
- branch-pattern: 'master'
wrappers:
- timestamps
- timeout:
timeout: 120
fail: true
- build-name:
name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
builders:
- shell: |
#!/bin/bash
set -ex
mkdir ${WORKSPACE}/../fvp
pushd ${WORKSPACE}/../fvp
wget ${FVP_MODEL_URL}/${FVP_MODEL_ARCHIVE_NAME}
tar xvfz ${FVP_MODEL_ARCHIVE_NAME}
popd
PATH=${WORKSPACE}/prebuilts/linux-x64/dtc:$PATH
make PROJECT=reference ENABLE_ASSERTIONS=1
kokoro/test_spmc.sh
#
# Run also with asserts disabled if RUN_ASSERT_DISABLED_BUILD
# parameter is set.
# Call 'make clean' and remove args.gn file to ensure the value of
# enable_assertions is updated from the default.
#
if [ "$RUN_ASSERT_DISABLED_BUILD" == "true" ]
then
make clean
rm -f out/reference/build.ninja out/reference/args.gn
make PROJECT=reference ENABLE_ASSERTIONS=0
kokoro/test_spmc.sh
fi
publishers:
- archive:
artifacts: 'out/**/kokoro_log/**/sponge_log.*'
- junit:
results: 'out/**/kokoro_log/**/sponge_log.xml'