1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/rng/Makefile
Gaëtan Harter 27b42d34d3
tests/rng: replace printf_float with fmt/print_float
When running the test on `arduino-mega2560` printing the float failed
and was printed as ` ?`.

    Calculated  ? bits of entropy from 10000 samples.

Replace using `printf` floating point printing by using `fmt/print_float`.
Now the test succeeds on `arduino-mega2560`.

As `print_float` does not buffer and is used with `printf` the output
should be flushed before calling it if `fflush` is available.
2019-02-21 10:42:04 +01:00

20 lines
486 B
Makefile

include ../Makefile.tests_common
# some boards have not enough rom and/or ram
BOARD_BLACKLIST += nucleo-f031k6 nucleo-f042k6 nucleo-l031k6 pic32-clicker
BOARD_INSUFFICIENT_MEMORY += arduino-duemilanove arduino-uno
# override PRNG if desired (see sys/random for alternatives)
# USEMODULE += prng_minstd
USEMODULE += fmt
USEMODULE += random
USEMODULE += shell
USEMODULE += xtimer
FEATURES_OPTIONAL += periph_hwrng
TEST_ON_CI_WHITELIST += native
include $(RIOTBASE)/Makefile.include