Skip to content

Commit

Permalink
[test] avr: split arduino-nano unittest into 8 parts
Browse files Browse the repository at this point in the history
  • Loading branch information
rleh committed Jan 8, 2021
1 parent 28d21a4 commit 8c322a2
Show file tree
Hide file tree
Showing 10 changed files with 317 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
when: always
command: |
(cd test && make compile-arduino-uno)
(cd test && make compile-arduino-nano)
(cd test && make compile-arduino-nano_A compile-arduino-nano_C compile-arduino-nano_D compile-arduino-nano_E compile-arduino-nano_G)
- run:
name: Compile AVR Unittests ATmega
when: always
Expand Down
38 changes: 34 additions & 4 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,40 @@ run-arduino-uno:
$(call run-test,arduino-uno,size)


compile-arduino-nano:
$(call compile-test,arduino-nano,size)
run-arduino-nano:
$(call run-test,arduino-nano,size)
# Currenly only unittests _A, _C, _D, _E, _G are functional
compile-arduino-nano_A:
$(call compile-test,arduino-nano_A,size)
run-arduino-nano_A:
$(call run-test,arduino-nano_A,size)
compile-arduino-nano_B:
$(call compile-test,arduino-nano_B,size)
run-arduino-nano_B:
$(call run-test,arduino-nano_B,size)
compile-arduino-nano_C:
$(call compile-test,arduino-nano_C,size)
run-arduino-nano_C:
$(call run-test,arduino-nano_C,size)
compile-arduino-nano_D:
$(call compile-test,arduino-nano_D,size)
run-arduino-nano_D:
$(call run-test,arduino-nano_D,size)
compile-arduino-nano_E:
$(call compile-test,arduino-nano_E,size)
run-arduino-nano_E:
$(call run-test,arduino-nano_E,size)
compile-arduino-nano_F:
$(call compile-test,arduino-nano_F,size)
run-arduino-nano_F:
$(call run-test,arduino-nano_F,size)
compile-arduino-nano_G:
$(call compile-test,arduino-nano_G,size)
run-arduino-nano_G:
$(call run-test,arduino-nano_G,size)
compile-arduino-nano_H:
$(call compile-test,arduino-nano_H,size)
run-arduino-nano_H:
$(call run-test,arduino-nano_H,size)


compile-mega-2560-pro:
$(call compile-test,mega-2560-pro,size)
Expand Down
40 changes: 40 additions & 0 deletions test/config/arduino-nano_A.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version='1.0' encoding='UTF-8'?>
<library>
<extends>modm:arduino-nano</extends>
<options>
<option name="modm:build:build.path">../../build/generated-unittest/arduino-nano_A/</option>
<option name="modm:build:scons:unittest.source">../../build/generated-unittest/arduino-nano_A/modm-test</option>
<option name="modm:build:scons:info.git">Disabled</option>
<option name="modm:io:with_float">True</option>
<option name="modm:io:with_long_long">True</option>
<option name="modm:io:with_printf">True</option>
</options>

<modules>
<!-- ATmega328p only has 32kB of Flash -->

<module>modm-test:test:architecture</module>
<module>modm-test:test:communication:sab</module>


<!-- <module>modm-test:test:communication:xpcc</module> -->


<!-- <module>modm-test:test:container</module> -->


<!-- <module>modm-test:test:driver</module>
<module>modm-test:test:stdc++</module> -->


<!-- <module>modm-test:test:io</module>
<module>modm-test:test:platform:**</module> -->


<!-- <module>modm-test:test:processing</module> -->


<!-- <module>modm-test:test:ui</module>
<module>modm-test:test:math</module> -->
</modules>
</library>
40 changes: 40 additions & 0 deletions test/config/arduino-nano_B.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version='1.0' encoding='UTF-8'?>
<library>
<extends>modm:arduino-nano</extends>
<options>
<option name="modm:build:build.path">../../build/generated-unittest/arduino-nano_B/</option>
<option name="modm:build:scons:unittest.source">../../build/generated-unittest/arduino-nano_B/modm-test</option>
<option name="modm:build:scons:info.git">Disabled</option>
<option name="modm:io:with_float">True</option>
<option name="modm:io:with_long_long">True</option>
<option name="modm:io:with_printf">True</option>
</options>

<modules>
<!-- ATmega328p only has 32kB of Flash -->

<!-- <module>modm-test:test:architecture</module>
<module>modm-test:test:communication:sab</module> -->


<module>modm-test:test:communication:xpcc</module>


<!-- <module>modm-test:test:container</module> -->


<!-- <module>modm-test:test:driver</module>
<module>modm-test:test:stdc++</module> -->


<!-- <module>modm-test:test:io</module>
<module>modm-test:test:platform:**</module> -->


<!-- <module>modm-test:test:processing</module> -->


<!-- <module>modm-test:test:ui</module>
<module>modm-test:test:math</module> -->
</modules>
</library>
40 changes: 40 additions & 0 deletions test/config/arduino-nano_C.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version='1.0' encoding='UTF-8'?>
<library>
<extends>modm:arduino-nano</extends>
<options>
<option name="modm:build:build.path">../../build/generated-unittest/arduino-nano_C/</option>
<option name="modm:build:scons:unittest.source">../../build/generated-unittest/arduino-nano_C/modm-test</option>
<option name="modm:build:scons:info.git">Disabled</option>
<option name="modm:io:with_float">True</option>
<option name="modm:io:with_long_long">True</option>
<option name="modm:io:with_printf">True</option>
</options>

<modules>
<!-- ATmega328p only has 32kB of Flash -->

<!-- <module>modm-test:test:architecture</module>
<module>modm-test:test:communication:sab</module> -->


<!-- <module>modm-test:test:communication:xpcc</module> -->


<module>modm-test:test:container</module>


<!-- <module>modm-test:test:driver</module>
<module>modm-test:test:stdc++</module> -->


<!-- <module>modm-test:test:io</module>
<module>modm-test:test:platform:**</module> -->


<!-- <module>modm-test:test:processing</module> -->


<!-- <module>modm-test:test:ui</module>
<module>modm-test:test:math</module> -->
</modules>
</library>
40 changes: 40 additions & 0 deletions test/config/arduino-nano_D.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version='1.0' encoding='UTF-8'?>
<library>
<extends>modm:arduino-nano</extends>
<options>
<option name="modm:build:build.path">../../build/generated-unittest/arduino-nano_D/</option>
<option name="modm:build:scons:unittest.source">../../build/generated-unittest/arduino-nano_D/modm-test</option>
<option name="modm:build:scons:info.git">Disabled</option>
<option name="modm:io:with_float">True</option>
<option name="modm:io:with_long_long">True</option>
<option name="modm:io:with_printf">True</option>
</options>

<modules>
<!-- ATmega328p only has 32kB of Flash -->

<!-- <module>modm-test:test:architecture</module>
<module>modm-test:test:communication:sab</module> -->


<!-- <module>modm-test:test:communication:xpcc</module> -->


<!-- <module>modm-test:test:container</module> -->


<module>modm-test:test:driver</module>
<module>modm-test:test:stdc++</module>


<!-- <<module>modm-test:test:io</module>
<module>modm-test:test:platform:**</module> -->


<!-- <module>modm-test:test:processing</module> -->


<!-- <module>modm-test:test:ui</module>
<module>modm-test:test:math</module> -->
</modules>
</library>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<library>
<extends>modm:arduino-nano</extends>
<options>
<option name="modm:build:build.path">../../build/generated-unittest/arduino-nano/</option>
<option name="modm:build:scons:unittest.source">../../build/generated-unittest/arduino-nano/modm-test</option>
<option name="modm:build:build.path">../../build/generated-unittest/arduino-nano_E/</option>
<option name="modm:build:scons:unittest.source">../../build/generated-unittest/arduino-nano_E/modm-test</option>
<option name="modm:build:scons:info.git">Disabled</option>
<option name="modm:io:with_float">True</option>
<option name="modm:io:with_long_long">True</option>
Expand Down
40 changes: 40 additions & 0 deletions test/config/arduino-nano_F.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version='1.0' encoding='UTF-8'?>
<library>
<extends>modm:arduino-nano</extends>
<options>
<option name="modm:build:build.path">../../build/generated-unittest/arduino-nano_F/</option>
<option name="modm:build:scons:unittest.source">../../build/generated-unittest/arduino-nano_F/modm-test</option>
<option name="modm:build:scons:info.git">Disabled</option>
<option name="modm:io:with_float">True</option>
<option name="modm:io:with_long_long">True</option>
<option name="modm:io:with_printf">True</option>
</options>

<modules>
<!-- ATmega328p only has 32kB of Flash -->

<!-- <module>modm-test:test:architecture</module>
<module>modm-test:test:communication:sab</module> -->


<!-- <module>modm-test:test:communication:xpcc</module> -->


<!-- <module>modm-test:test:container</module> -->


<!-- <module>modm-test:test:driver</module>
<module>modm-test:test:stdc++</module> -->


<!-- <module>modm-test:test:io</module>
<module>modm-test:test:platform:**</module> -->


<module>modm-test:test:processing</module>


<!-- <module>modm-test:test:ui</module>
<module>modm-test:test:math</module> -->
</modules>
</library>
40 changes: 40 additions & 0 deletions test/config/arduino-nano_G.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version='1.0' encoding='UTF-8'?>
<library>
<extends>modm:arduino-nano</extends>
<options>
<option name="modm:build:build.path">../../build/generated-unittest/arduino-nano_G/</option>
<option name="modm:build:scons:unittest.source">../../build/generated-unittest/arduino-nano_G/modm-test</option>
<option name="modm:build:scons:info.git">Disabled</option>
<option name="modm:io:with_float">True</option>
<option name="modm:io:with_long_long">True</option>
<option name="modm:io:with_printf">True</option>
</options>

<modules>
<!-- ATmega328p only has 32kB of Flash -->

<!-- <module>modm-test:test:architecture</module>
<module>modm-test:test:communication:sab</module> -->


<!-- <module>modm-test:test:communication:xpcc</module> -->


<!-- <module>modm-test:test:container</module> -->


<!-- <module>modm-test:test:driver</module>
<module>modm-test:test:stdc++</module> -->


<!-- <module>modm-test:test:io</module>
<module>modm-test:test:platform:**</module> -->


<!-- <module>modm-test:test:processing</module> -->


<module>modm-test:test:ui</module>
<!-- <module>modm-test:test:math</module> -->
</modules>
</library>
40 changes: 40 additions & 0 deletions test/config/arduino-nano_H.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version='1.0' encoding='UTF-8'?>
<library>
<extends>modm:arduino-nano</extends>
<options>
<option name="modm:build:build.path">../../build/generated-unittest/arduino-nano_H/</option>
<option name="modm:build:scons:unittest.source">../../build/generated-unittest/arduino-nano_H/modm-test</option>
<option name="modm:build:scons:info.git">Disabled</option>
<option name="modm:io:with_float">True</option>
<option name="modm:io:with_long_long">True</option>
<option name="modm:io:with_printf">True</option>
</options>

<modules>
<!-- ATmega328p only has 32kB of Flash -->

<!-- <module>modm-test:test:architecture</module>
<module>modm-test:test:communication:sab</module> -->


<!-- <module>modm-test:test:communication:xpcc</module> -->


<!-- <module>modm-test:test:container</module> -->


<!-- <module>modm-test:test:driver</module>
<module>modm-test:test:stdc++</module> -->


<!-- <module>modm-test:test:io</module>
<module>modm-test:test:platform:**</module> -->


<!-- <module>modm-test:test:processing</module> -->


<!-- <module>modm-test:test:ui</module> -->
<module>modm-test:test:math</module>
</modules>
</library>

0 comments on commit 8c322a2

Please sign in to comment.