mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests: default to musl LCG
This commit is contained in:
parent
39b8cdf760
commit
87e0032902
@ -1,3 +1,3 @@
|
||||
USEMODULE += random
|
||||
# Set a different prng than the default prng_tinymt32
|
||||
# Set a different prng than the default
|
||||
USEMODULE += prng_xorshift
|
||||
|
@ -3,5 +3,5 @@ CONFIG_MODULE_RANDOM=y
|
||||
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
|
||||
# Since the makefile cannot we have to override until end of migration
|
||||
# Remove when TEST_KCONFIG is complete
|
||||
CONFIG_MODULE_PRNG_TINYMT32=y
|
||||
CONFIG_MODULE_PRNG_MUSL_LCG=y
|
||||
CONFIG_PACKAGE_C25519=y
|
||||
|
@ -3,5 +3,5 @@ CONFIG_MODULE_RANDOM=y
|
||||
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
|
||||
# Since the makefile cannot we have to override until end of migration
|
||||
# Remove when TEST_KCONFIG is complete
|
||||
CONFIG_MODULE_PRNG_TINYMT32=y
|
||||
CONFIG_MODULE_PRNG_MUSL_LCG=y
|
||||
CONFIG_PACKAGE_CIFRA=y
|
||||
|
@ -3,5 +3,5 @@ CONFIG_MODULE_RANDOM=y
|
||||
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
|
||||
# Since the makefile cannot we have to override until end of migration
|
||||
# Remove when TEST_KCONFIG is complete
|
||||
CONFIG_MODULE_PRNG_TINYMT32=y
|
||||
CONFIG_MODULE_PRNG_MUSL_LCG=y
|
||||
CONFIG_PACKAGE_HACL=y
|
||||
|
@ -4,7 +4,7 @@ CONFIG_MODULE_MEMARRAY=y
|
||||
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
|
||||
# Since the makefile cannot we have to override until end of migration
|
||||
# Remove when TEST_KCONFIG is complete
|
||||
CONFIG_MODULE_PRNG_TINYMT32=y
|
||||
CONFIG_MODULE_PRNG_MUSL_LCG=y
|
||||
CONFIG_MODULE_RANDOM=y
|
||||
CONFIG_PACKAGE_HACL=y
|
||||
CONFIG_PACKAGE_LIBCOSE=y
|
||||
|
@ -3,5 +3,5 @@ CONFIG_MODULE_RANDOM=y
|
||||
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
|
||||
# Since the makefile cannot we have to override until end of migration
|
||||
# Remove when TEST_KCONFIG is complete
|
||||
CONFIG_MODULE_PRNG_TINYMT32=y
|
||||
CONFIG_MODULE_PRNG_MUSL_LCG=y
|
||||
CONFIG_PACKAGE_LIBHYDROGEN=y
|
||||
|
@ -3,5 +3,5 @@ CONFIG_MODULE_RANDOM=y
|
||||
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
|
||||
# Since the makefile cannot we have to override until end of migration
|
||||
# Remove when TEST_KCONFIG is complete
|
||||
CONFIG_MODULE_PRNG_TINYMT32=y
|
||||
CONFIG_MODULE_PRNG_MUSL_LCG=y
|
||||
CONFIG_PACKAGE_MICRO-ECC=y
|
||||
|
@ -3,5 +3,5 @@ CONFIG_MODULE_RANDOM=y
|
||||
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
|
||||
# Since the makefile cannot we have to override until end of migration
|
||||
# Remove when TEST_KCONFIG is complete
|
||||
CONFIG_MODULE_PRNG_TINYMT32=y
|
||||
CONFIG_MODULE_PRNG_MUSL_LCG=y
|
||||
CONFIG_PACKAGE_MONOCYPHER=y
|
||||
|
@ -3,5 +3,5 @@ CONFIG_MODULE_RANDOM=y
|
||||
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
|
||||
# Since the makefile cannot we have to override until end of migration
|
||||
# Remove when TEST_KCONFIG is complete
|
||||
CONFIG_MODULE_PRNG_TINYMT32=y
|
||||
CONFIG_MODULE_PRNG_MUSL_LCG=y
|
||||
CONFIG_PACKAGE_QDSA=y
|
||||
|
@ -3,5 +3,5 @@ CONFIG_MODULE_RANDOM=y
|
||||
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
|
||||
# Since the makefile cannot we have to override until end of migration
|
||||
# Remove when TEST_KCONFIG is complete
|
||||
CONFIG_MODULE_PRNG_TINYMT32=y
|
||||
CONFIG_MODULE_PRNG_MUSL_LCG=y
|
||||
CONFIG_PACKAGE_TWEETNACL=y
|
||||
|
@ -20,7 +20,7 @@ def testfunc(child):
|
||||
child.expect_exact("> ")
|
||||
|
||||
child.sendline("fips")
|
||||
child.expect_exact("Running FIPS 140-2 test, with seed 1337 using Tiny Mersenne Twister PRNG.")
|
||||
child.expect_exact("Running FIPS 140-2 test, with seed 1337 using Musl C PRNG.")
|
||||
child.expect("Monobit test: passed")
|
||||
child.expect("Poker test: passed")
|
||||
child.expect("Run test: passed")
|
||||
@ -28,21 +28,21 @@ def testfunc(child):
|
||||
child.expect_exact("> ")
|
||||
|
||||
child.sendline("dump 10")
|
||||
child.expect_exact("Running dump test, with seed 1337 using Tiny Mersenne Twister PRNG.")
|
||||
child.expect("1555530734")
|
||||
child.expect("2178333451")
|
||||
child.expect("2272913641")
|
||||
child.expect("3790481823")
|
||||
child.expect("3190025502")
|
||||
child.expect("798555366")
|
||||
child.expect("1918982324")
|
||||
child.expect("1550167154")
|
||||
child.expect("3454972398")
|
||||
child.expect("1034066532")
|
||||
child.expect_exact("Running dump test, with seed 1337 using Musl C PRNG.")
|
||||
child.expect("3954330727")
|
||||
child.expect("188121509")
|
||||
child.expect("1069019535")
|
||||
child.expect("1187072490")
|
||||
child.expect("4172651676")
|
||||
child.expect("2421580254")
|
||||
child.expect("2126354391")
|
||||
child.expect("1784094822")
|
||||
child.expect("751721632")
|
||||
child.expect("679714536")
|
||||
child.expect_exact("> ")
|
||||
|
||||
child.sendline("entropy")
|
||||
child.expect(re.compile(r"Calculated 7\.994\d{3} bits of entropy from 10000 samples\."))
|
||||
child.expect(re.compile(r"Calculated 7\.995\d{3} bits of entropy from 10000 samples\."))
|
||||
child.expect_exact("> ")
|
||||
|
||||
# Constant source
|
||||
|
@ -4,5 +4,5 @@ CONFIG_MODULE_ATOMIC_UTILS=y
|
||||
CONFIG_MODULE_FMT=y
|
||||
CONFIG_MODULE_SHELL=y
|
||||
CONFIG_MODULE_RANDOM=y
|
||||
CONFIG_MODULE_PRNG_TINYMT32=y
|
||||
CONFIG_MODULE_PRNG_MUSL_LCG=y
|
||||
CONFIG_MODULE_XTIMER=y
|
||||
|
@ -4,4 +4,4 @@ CONFIG_MODULE_EMBUNIT=y
|
||||
CONFIG_MODULE_ATOMIC_UTILS=y
|
||||
CONFIG_MODULE_RANDOM=y
|
||||
# Force tinymt32 to be selected
|
||||
CONFIG_MODULE_PRNG_TINYMT32=y
|
||||
CONFIG_MODULE_PRNG_MUSL_LCG=y
|
||||
|
Loading…
Reference in New Issue
Block a user