tests: crypto: move the rand32 test to new ztest API
Migrate the testsuite tests/crypto/rand32 to the new ztest API. Signed-off-by: Enjia Mai <enjia.mai@intel.com>
This commit is contained in:
parent
ae30549207
commit
7a39635f0d
5 changed files with 6 additions and 8 deletions
|
@ -1,4 +1,5 @@
|
||||||
CONFIG_ZTEST=y
|
CONFIG_ZTEST=y
|
||||||
|
CONFIG_ZTEST_NEW_API=y
|
||||||
CONFIG_LOG=y
|
CONFIG_LOG=y
|
||||||
CONFIG_ENTROPY_GENERATOR=y
|
CONFIG_ENTROPY_GENERATOR=y
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
CONFIG_ZTEST=y
|
CONFIG_ZTEST=y
|
||||||
|
CONFIG_ZTEST_NEW_API=y
|
||||||
CONFIG_LOG=y
|
CONFIG_LOG=y
|
||||||
CONFIG_ENTROPY_GENERATOR=y
|
CONFIG_ENTROPY_GENERATOR=y
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
CONFIG_ZTEST=y
|
CONFIG_ZTEST=y
|
||||||
|
CONFIG_ZTEST_NEW_API=y
|
||||||
CONFIG_LOG=y
|
CONFIG_LOG=y
|
||||||
CONFIG_ENTROPY_GENERATOR=y
|
CONFIG_ENTROPY_GENERATOR=y
|
||||||
CONFIG_XOSHIRO_RANDOM_GENERATOR=y
|
CONFIG_XOSHIRO_RANDOM_GENERATOR=y
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
CONFIG_ZTEST=y
|
CONFIG_ZTEST=y
|
||||||
|
CONFIG_ZTEST_NEW_API=y
|
||||||
CONFIG_LOG=y
|
CONFIG_LOG=y
|
||||||
CONFIG_ENTROPY_GENERATOR=y
|
CONFIG_ENTROPY_GENERATOR=y
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void test_rand32(void)
|
ZTEST(rand32_common, test_rand32)
|
||||||
{
|
{
|
||||||
uint32_t gen, last_gen, tmp;
|
uint32_t gen, last_gen, tmp;
|
||||||
int rnd_cnt;
|
int rnd_cnt;
|
||||||
|
@ -112,10 +112,4 @@ void test_rand32(void)
|
||||||
#endif /* CONFIG_CSPRING_ENABLED */
|
#endif /* CONFIG_CSPRING_ENABLED */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ZTEST_SUITE(rand32_common, NULL, NULL, NULL, NULL, NULL);
|
||||||
void test_main(void)
|
|
||||||
{
|
|
||||||
ztest_test_suite(common_test, ztest_unit_test(test_rand32));
|
|
||||||
|
|
||||||
ztest_run_test_suite(common_test);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue