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
Gaëtan Harter
44d2b62a70
tests/rng: fix cppcheck error shiftTooManyBitsSigned
...
cpp check is reporting the following error
error (shiftTooManyBitsSigned):
Shifting signed 32-bit value by 31 bits is undefined behaviour
Fix by ensuring the `1` is an `uint32_t` before shifting.
2019-02-21 10:41:33 +01:00
472bd0ae01
tests: remove obsolete local test targets
2018-09-07 15:13:08 +02:00
smlng
3893f04d00
tests: move testrunner import up
...
Testrunner is now impported as a package found in PYTHONPATH, so
import can be placed at the top of the script as usual.
2018-08-13 14:11:24 +02:00
smlng
f9824abedb
tests: remove unused os package import
...
os package is imported by every test script but only used by
a few, thus flake8 check reported errors.
2018-08-13 14:11:23 +02:00
smlng
13d61b5c20
tests: use testrunner from pythonlibs
...
Remove now obsolete sys.append from all tests, as testrunner was moved
to dist/pythonlibs as proper package.
2018-08-13 14:11:23 +02:00
Joakim Nohlgård
21310e4260
tests/rng: Use xtimer for speed test timeout
2018-06-27 13:04:34 +02:00
PeterKietzmann
85643ad01f
tests/rng: add tests for random_uint32_range()
2018-06-26 14:08:46 +02:00
PeterKietzmann
3c4360eddb
sys/random: add SHA1PRNG
2018-06-22 16:11:53 +02:00
Bas Stottelaar
8fe56a1d73
tests: rng: add fortuna PRNG.
2018-05-29 18:40:59 +02:00
633a92929d
boards/nucleo-l031k6: rename to st marketing name
2018-05-23 12:50:33 +02:00
81700d4301
boards/nucleo-f042k6: rename to st marketing name
2018-05-23 12:49:40 +02:00
3e4f7adc95
boards/nucleo-f031k6: rename to st marketing name
2018-05-23 12:46:42 +02:00
Gaëtan Harter
154fbcff35
tests: use RIOTTOOLS variable
...
Follow up to #9067 and part of #8821
2018-05-04 10:52:26 +02:00
Francisco Acosta
1886256f90
tests: add HIL for selected test
2018-04-09 17:50:22 +02:00
Joakim Nohlgård
2bf1068c72
tests/rng: Clean up includes
2018-02-07 10:24:33 +01:00
Martine Lenders
f485040df5
Merge pull request #8307 from aabadie/pr/flake8/fix_tests_rng
...
tests/rng/tests: fix flake8 F401 issue
2017-12-27 11:52:21 +01:00
e8e581ea54
tests/rng: make Makefile adhere to conventions
2017-12-21 13:23:23 +01:00
3b55a73ced
tests/rng/tests: fix flake8 F401 issue
...
F401 'pexpect' imported but unused
2017-12-20 16:42:59 +01:00
Bas Stottelaar
28eaf5db3a
tests: rng: add test suite for RNG sources (PRNG, HWRNG)
2017-12-17 17:02:59 +01:00