tests: random: Move and rename rng test
Random number generator is a subsystem and although it is mostly used in crypto, this is not its only utility. Move the current random number generator test to it is own space (tests/subsys/random) and rename it to rng. We need more and better tests for rng, this is an initial commit to organize it and get ready for further tests. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
c57c857f9b
commit
8c5806472e
9 changed files with 7 additions and 7 deletions
|
@ -26,7 +26,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ZTEST(rand32_common, test_rand32)
|
ZTEST(rng_common, test_rand32)
|
||||||
{
|
{
|
||||||
uint32_t gen, last_gen, tmp;
|
uint32_t gen, last_gen, tmp;
|
||||||
int rnd_cnt;
|
int rnd_cnt;
|
||||||
|
@ -115,4 +115,4 @@ ZTEST(rand32_common, test_rand32)
|
||||||
#endif /* CONFIG_CSPRNG_ENABLED */
|
#endif /* CONFIG_CSPRNG_ENABLED */
|
||||||
}
|
}
|
||||||
|
|
||||||
ZTEST_SUITE(rand32_common, NULL, NULL, NULL, NULL, NULL);
|
ZTEST_SUITE(rng_common, NULL, NULL, NULL, NULL, NULL);
|
|
@ -4,27 +4,27 @@ common:
|
||||||
- random
|
- random
|
||||||
- security
|
- security
|
||||||
tests:
|
tests:
|
||||||
crypto.rand32:
|
crypto.rng:
|
||||||
min_ram: 16
|
min_ram: 16
|
||||||
integration_platforms:
|
integration_platforms:
|
||||||
- qemu_x86
|
- qemu_x86
|
||||||
crypto.rand32.random_sw_systimer:
|
crypto.rng.random_sw_systimer:
|
||||||
extra_args: CONF_FILE=prj_sw_random_systimer.conf
|
extra_args: CONF_FILE=prj_sw_random_systimer.conf
|
||||||
integration_platforms:
|
integration_platforms:
|
||||||
- qemu_x86
|
- qemu_x86
|
||||||
crypto.rand32.random_hw_xoshiro:
|
crypto.rng.random_hw_xoshiro:
|
||||||
extra_args: CONF_FILE=prj_hw_random_xoshiro.conf
|
extra_args: CONF_FILE=prj_hw_random_xoshiro.conf
|
||||||
filter: CONFIG_ENTROPY_HAS_DRIVER
|
filter: CONFIG_ENTROPY_HAS_DRIVER
|
||||||
min_ram: 16
|
min_ram: 16
|
||||||
integration_platforms:
|
integration_platforms:
|
||||||
- native_sim
|
- native_sim
|
||||||
crypto.rand32.random_ctr_drbg:
|
crypto.rng.random_ctr_drbg:
|
||||||
extra_args: CONF_FILE=prj_ctr_drbg.conf
|
extra_args: CONF_FILE=prj_ctr_drbg.conf
|
||||||
filter: CONFIG_ENTROPY_HAS_DRIVER
|
filter: CONFIG_ENTROPY_HAS_DRIVER
|
||||||
min_ram: 16
|
min_ram: 16
|
||||||
integration_platforms:
|
integration_platforms:
|
||||||
- native_sim
|
- native_sim
|
||||||
drivers.rand32.random_psa_crypto:
|
drivers.rng.random_psa_crypto:
|
||||||
filter: CONFIG_BUILD_WITH_TFM
|
filter: CONFIG_BUILD_WITH_TFM
|
||||||
arch_exclude: posix
|
arch_exclude: posix
|
||||||
extra_args:
|
extra_args:
|
Loading…
Add table
Add a link
Reference in a new issue