[riot-notifications] [RIOT-OS/RIOT] tests/unittests: Move large unittests to individual tests (#10187)

Gaëtan Harter notifications at github.com
Tue Sep 10 14:41:07 CEST 2019


> > Then I guess most memory (also in other tests) can be saved by making those constants public.
> 
> Mhhh... I did that, but somehow it grew instead of shrinking:
> 
> On current master ([741d543](https://github.com/RIOT-OS/RIOT/commit/741d5437a7ce60b7833c938776d72faddaea5be7)):
> 
> ```
> $ BOARD=nrf52840dk RIOT_CI_BUILD=1 make -C tests/unittests/ tests-gnrc_ipv6_nib clean all -j16
> make: Entering directory '/home/mlenders/Repositories/RIOT-OS/RIOT/tests/unittests'
> Building application "tests_unittests" for "nrf52840dk" with MCU "nrf52".
> 
> make: Nothing to be done for 'clean'.
>    text	   data	    bss	    dec	    hex	filename
>   57112	    116	  12716	  69944	  11138	/home/mlenders/Repositories/RIOT-OS/RIOT/tests/unittests/bin/nrf52840dk/tests_unittests.elf
> make: Nothing to be done for 'all'.
> make: Leaving directory '/home/mlenders/Repositories/RIOT-OS/RIOT/tests/unittests'
> ```
> 
> On [my branch](https://github.com/RIOT-OS/RIOT/compare/741d5437a7ce60b7833c938776d72faddaea5be7...miri64:tests/enh/gnrc_ipv6_nib-static_const):
> 
> ```
> $ BOARD=nrf52840dk RIOT_CI_BUILD=1 make -C tests/unittests/ tests-gnrc_ipv6_nib clean all -j16
> make: Entering directory '/home/mlenders/Repositories/RIOT-OS/RIOT/tests/unittests'
> Building application "tests_unittests" for "nrf52840dk" with MCU "nrf52".
> 
> make: Nothing to be done for 'clean'.
>    text	   data	    bss	    dec	    hex	filename
>   57772	    116	  12716	  70604	  113cc	/home/mlenders/Repositories/RIOT-OS/RIOT/tests/unittests/bin/nrf52840dk/tests_unittests.elf
> make: Nothing to be done for 'all'.
> make: Leaving directory '/home/mlenders/Repositories/RIOT-OS/RIOT/tests/unittests'
> ```

I tried it too and when I changed it in one file, it shrinked it, but the other made it grow too :/
It may be some type of long operand to get the structure.

Splitting it would solve the issue for `unittests` at least.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/10187#issuecomment-529915910
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190910/592f2d40/attachment.htm>


More information about the notifications mailing list