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:
Flavio Ceolin 2024-05-15 14:09:39 -07:00 committed by David Leach
commit 8c5806472e
9 changed files with 7 additions and 7 deletions

View file

@ -26,7 +26,7 @@
*
*/
ZTEST(rand32_common, test_rand32)
ZTEST(rng_common, test_rand32)
{
uint32_t gen, last_gen, tmp;
int rnd_cnt;
@ -115,4 +115,4 @@ ZTEST(rand32_common, test_rand32)
#endif /* CONFIG_CSPRNG_ENABLED */
}
ZTEST_SUITE(rand32_common, NULL, NULL, NULL, NULL, NULL);
ZTEST_SUITE(rng_common, NULL, NULL, NULL, NULL, NULL);

View file

@ -4,27 +4,27 @@ common:
- random
- security
tests:
crypto.rand32:
crypto.rng:
min_ram: 16
integration_platforms:
- qemu_x86
crypto.rand32.random_sw_systimer:
crypto.rng.random_sw_systimer:
extra_args: CONF_FILE=prj_sw_random_systimer.conf
integration_platforms:
- qemu_x86
crypto.rand32.random_hw_xoshiro:
crypto.rng.random_hw_xoshiro:
extra_args: CONF_FILE=prj_hw_random_xoshiro.conf
filter: CONFIG_ENTROPY_HAS_DRIVER
min_ram: 16
integration_platforms:
- native_sim
crypto.rand32.random_ctr_drbg:
crypto.rng.random_ctr_drbg:
extra_args: CONF_FILE=prj_ctr_drbg.conf
filter: CONFIG_ENTROPY_HAS_DRIVER
min_ram: 16
integration_platforms:
- native_sim
drivers.rand32.random_psa_crypto:
drivers.rng.random_psa_crypto:
filter: CONFIG_BUILD_WITH_TFM
arch_exclude: posix
extra_args: