Skip to content

Commit 221cf89

Browse files
committed
script: set tags for each examples
parse makefile variables to extract environment and platform configs from makefile get makefile variables by using command 'make -pn' parse platform core config by reading tcf and add tags according to core and platform's peripheral add core_exclude to examples.yaml. Now we haven't figured out why emsk 23 arcem9d fail, and the error shows `REGION_ICCM' and `REGION_DCCM' overflowed Signed-off-by: Jingru Wang <jingru@synopsys.com>
1 parent e0b30ad commit 221cf89

File tree

3 files changed

+188
-51
lines changed

3 files changed

+188
-51
lines changed

example/examples.yaml

Lines changed: 57 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,139 @@
1+
#
2+
# This file contails the supported examples and the test scenario for each example
3+
# Each examples block can define the follwing key/value
4+
# tags: <list of tags>
5+
# a set of string tags. Usually pertains to features and peripherals that
6+
# platform support. Command line invocations of this script can filter the
7+
# set of examples to run based on tag
8+
# skip: <True|False>
9+
# skip example unconditionally
10+
# build_only: <True|False>
11+
# if true, don't try to run the example
12+
# platform_allow: <list of platforms>
13+
# set of platforms that this example should only be run for
14+
# platform_exclude: <list of platforms>
15+
# set of platforms that this example should not be run for
16+
# core_exlude: <list of cores>
17+
# set of cores that this example should not be run for, the
18+
# core should format as <platform_name>_<platform_version>_<core_name>
19+
# extra_args: <list of extra Make arguments>
20+
# extra arguments to pass to Make when building or running the example
21+
#
122
examples:
223
example.baremetal.arc_feature.udma:
24+
tags: dma
325
build_only: false
4-
platform_exclude: axs
526
example.baremetal.arc_feature.cache:
27+
tags: icache dcache
628
build_only: false
7-
platform_exclude: axs nsim
829
example.baremetal.arc_feature.timer_interrupt:
30+
tags: timer
931
build_only: false
1032
example.baremetal.arc_feature.memory_protection:
33+
tags: mpu
1134
build_only: false
1235
example.baremetal.arc_feature.multicore:
36+
tags: smp
1337
build_only: true
1438
example.baremetal.arc_feature.xymem:
39+
tags: xymem
1540
build_only: false
16-
toolchain_allow: gnu
1741
example.baremetal.axs103:
1842
build_only: true
1943
platform_allow: axs
2044
example.baremetal.ble_rn4020:
45+
tags: uart
2146
build_only: true
2247
platform_exclude: nsim
2348
example.baremetal.ble_hm1x:
49+
tags: uart
2450
build_only: true
2551
platform_exclude: nsim
2652
example.baremetal.blinky:
53+
tags: blinky
2754
build_only: true
2855
example.baremetal.bootloader:
56+
tags: bootloader
2957
build_only: true
30-
platform_exclude: emsdp hsdk axs nsim
58+
platform_allow: emsk iotdk
3159
example.baremetal.cxx:
3260
build_only: false
3361
example.baremetal.dma_spiflash:
62+
tags: dma spi
3463
build_only: true
35-
platform_exclude:
36-
emsk: 11 22
64+
platform_exclude: nsim
3765
example.baremetal.graphic_u8glib:
3866
build_only: true
3967
platform_exclude: nsim
4068
example.baremetal.imu_mpu9250:
4169
build_only: true
4270
platform_exclude: nsim
4371
example.baremetal.openthread.cli:
72+
tags: bootloader
4473
build_only: true
45-
platform_exclude: emsdp axs nsim
74+
platform_allow: emsk iotdk
75+
core_exlude:
76+
- emsk_23_arcem9d
4677
example.baremetal.openthread.ncp:
78+
tags: bootloader
4779
build_only: true
48-
platform_exclude: nsim emsdp iotdk
80+
platform_allow: emsk iotdk
81+
core_exlude:
82+
- emsk_23_arcem9d
4983
example.baremetal.secureshield.secret_normal:
5084
skip: true
51-
tags: secureshield
85+
tags: mpu secureshield
5286
extra_args: USE_SECURESHIELD_APPL_GEN=1
5387
build_only: true
5488
platform_allow:
5589
emsk: 23
5690
iotdk: 10
5791
example.baremetal.secureshield.secret_secure:
5892
skip: true
59-
tags: secureshield
93+
tags: mpu secureshield
6094
extra_args: USE_SECURESHIELD_APPL_GEN=1
6195
build_only: true
6296
platform_allow:
6397
emsk: 23
6498
iotdk: 10
6599
example.baremetal.secureshield.secret_secure_sid:
66100
skip: true
67-
tags: secureshield
101+
tags: mpu secureshield
68102
extra_args: USE_SECURESHIELD_APPL_GEN=1
69103
build_only: true
70104
platform_allow:
71105
emsk: 23
72106
nsim: 10
73107
iotdk: 10
74108
example.baremetal.secureshield.test_case:
75-
tags: secureshield
109+
tags: mpu secureshield
76110
build_only: true
77111
platform_allow:
78112
emsk: 23
79113
nsim: 10
80114
iotdk: 10
81115
example.freertos.esp8266_wifi:
116+
tags: uart
82117
build_only: true
83118
platform_exclude: nsim
84119
example.freertos.freertos_blinky:
120+
tags: blinky
85121
build_only: true
86122
example.freertos.iot.coap.coap_server:
87123
build_only: true
88124
platform_exclude: nsim
89125
example.freertos.iot.lwm2m.lwm2m_client:
90126
build_only: true
91127
platform_exclude: nsim
128+
core_exlude:
129+
- emsk_23_arcem9d
92130
example.freertos.iot.lwm2m.lwm2m_server:
93131
build_only: true
94132
platform_exclude: nsim
95133
example.freertos.kernel:
96134
build_only: true
97135
example.freertos.kernel_secure:
136+
tags: mpu secureshield
98137
build_only: true
99138
platform_allow:
100139
emsk: 23
@@ -104,6 +143,8 @@ examples:
104143
example.freertos.net.ntshell:
105144
build_only: true
106145
platform_exclude: nsim
146+
core_exlude:
147+
- emsk_23_arcem9d
107148
example.freertos.sec.mbedtls.dtls.client:
108149
build_only: true
109150
platform_exclude: iotdk nsim hsdk
@@ -113,6 +154,10 @@ examples:
113154
example.freertos.sec.mbedtls.ssl.client2:
114155
build_only: true
115156
platform_exclude: iotdk nsim hsdk
157+
core_exlude:
158+
- emsk_23_arcem9d
116159
example.freertos.sec.mbedtls.ssl.server2:
117160
build_only: true
118161
platform_exclude: iotdk nsim hsdk
162+
core_exlude:
163+
- emsk_23_arcem9d

scripts/.ci/script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ run_test() {
5252
export PYTHONUNBUFFERED=1
5353
{
5454
hostname
55-
python ./scripts/test.py --platform $BOARD --toolchain $TOOLCHAIN $target_flags --build-only --report-dir $logs_dir || true
55+
python ./scripts/test.py --platform $BOARD --toolchain $TOOLCHAIN $target_flags --build-only --report-dir $logs_dir -v -v || true
5656
} 2>&1 | tee -a $test_log
5757
}
5858

@@ -61,7 +61,7 @@ parse_logs() {
6161
sed -i 's/\r/\n/g' $test_log
6262

6363
METRICS=$(cat $test_log | grep "test configurations passed" | sed -n 's/^.*-\(.*\)*$/\1/p')
64-
COMMENT="$BOARD ${BD_VER:-} test results: $METRICS"
64+
COMMENT="$BOARD ${BD_VER:-} test results: $METRICS. [Details](https://travis-ci.org/$TRAVIS_REPO_SLUG/jobs/$TRAVIS_JOB_ID)"
6565

6666
curl --user "$EMBARC_BOT" --request POST https://api.github.com/repos/$TRAVIS_REPO_SLUG/commits/$TRAVIS_COMMIT/comments \
6767
--data '{"body":"'"${COMMENT}"'"}'

0 commit comments

Comments
 (0)