Skip to content

Commit cf8dd49

Browse files
committed
[test] Split ATmega2560 tests into two parts
1 parent 52e0d64 commit cf8dd49

File tree

4 files changed

+42
-22
lines changed

4 files changed

+42
-22
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ jobs:
197197
- name: Compile AVR Unittests ATmega
198198
if: always()
199199
run: |
200-
(cd test && make compile-mega-2560-pro)
200+
(cd test && make compile-mega-2560-pro_A compile-mega-2560-pro_B)
201201
- name: Quick compile HAL for AVR Devices
202202
if: always()
203203
run: |

test/Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ run-arduino-nano_H:
133133
$(call run-test,arduino-nano_H,size)
134134

135135

136-
compile-mega-2560-pro:
137-
$(call compile-test,mega-2560-pro,size)
138-
run-mega-2560-pro:
139-
$(call run-test,mega-2560-pro,size)
136+
compile-mega-2560-pro_A:
137+
$(call compile-test,mega-2560-pro_A,size)
138+
run-mega-2560-pro_A:
139+
$(call run-test,mega-2560-pro_A,size)
140+
compile-mega-2560-pro_B:
141+
$(call compile-test,mega-2560-pro_B,size)
142+
run-mega-2560-pro_B:
143+
$(call run-test,mega-2560-pro_B,size)

test/config/mega-2560-pro_A.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<library>
3+
<extends>modm:mega-2560-pro</extends>
4+
<options>
5+
<option name="modm:build:build.path">../../build/generated-unittest/mega-2560-pro_A/</option>
6+
<option name="modm:build:unittest.source">../../build/generated-unittest/mega-2560-pro_A/modm-test</option>
7+
<option name="modm:build:info.git">Disabled</option>
8+
<option name="modm:io:with_float">True</option>
9+
<option name="modm:io:with_long_long">True</option>
10+
<option name="modm:io:with_printf">True</option>
11+
</options>
12+
13+
<modules>
14+
<module>modm-test:test:architecture</module>
15+
<module>modm-test:test:communication:sab</module>
16+
<module>modm-test:test:communication:xpcc</module>
17+
<module>modm-test:test:container</module>
18+
<module>modm-test:test:driver</module>
19+
<module>modm-test:test:stdc++</module>
20+
<module>modm-test:test:io</module>
21+
22+
<!-- <module>modm-test:test:platform:**</module>
23+
<module>modm-test:test:processing</module>
24+
<module>modm-test:test:ui</module>
25+
<module>modm-test:test:math</module> -->
26+
</modules>
27+
</library>

test/config/mega-2560-pro.xml renamed to test/config/mega-2560-pro_B.xml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,25 @@
22
<library>
33
<extends>modm:mega-2560-pro</extends>
44
<options>
5-
<option name="modm:build:build.path">../../build/generated-unittest/mega-2560-pro/</option>
6-
<option name="modm:build:unittest.source">../../build/generated-unittest/mega-2560-pro/modm-test</option>
5+
<option name="modm:build:build.path">../../build/generated-unittest/mega-2560-pro_B/</option>
6+
<option name="modm:build:unittest.source">../../build/generated-unittest/mega-2560-pro_B/modm-test</option>
77
<option name="modm:build:info.git">Disabled</option>
88
<option name="modm:io:with_float">True</option>
99
<option name="modm:io:with_long_long">True</option>
1010
<option name="modm:io:with_printf">True</option>
1111
</options>
1212

1313
<modules>
14-
<module>modm-test:test:architecture</module>
15-
<!-- <module>modm-test:test:communication:sab</module> -->
16-
17-
18-
<!-- <module>modm-test:test:communication:xpcc</module> -->
19-
20-
14+
<!-- <module>modm-test:test:architecture</module>
15+
<module>modm-test:test:communication:sab</module>
16+
<module>modm-test:test:communication:xpcc</module>
2117
<module>modm-test:test:container</module>
22-
23-
2418
<module>modm-test:test:driver</module>
2519
<module>modm-test:test:stdc++</module>
20+
<module>modm-test:test:io</module> -->
2621

27-
28-
<module>modm-test:test:io</module>
2922
<module>modm-test:test:platform:**</module>
30-
31-
3223
<module>modm-test:test:processing</module>
33-
34-
3524
<module>modm-test:test:ui</module>
3625
<module>modm-test:test:math</module>
3726
</modules>

0 commit comments

Comments
 (0)