testsuite: ztress: Use XOSHIRO generator when ztress is used

Use XOSHIRO random number generator if target has entropy generator.
Some entropy generators may have limitations (e.g. only thread context)
which would conflict with ztress usage.

Added Kconfig.defconfig for testsuite.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2022-09-06 12:50:10 +02:00 committed by Anas Nashif
commit 2735a3a2fa
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,10 @@
# Copyright (c) 2022 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
if TEST
choice RNG_GENERATOR_CHOICE
default XOSHIRO_RANDOM_GENERATOR if ZTRESS && ENTROPY_HAS_DRIVER
endchoice
endif # TEST