testing: move nist-sts into drivers/rng directory

Move NIST Statistical Test Suite (nist-sts) testing module from testing/drivers/
into testing/drivers/rng/ directory to better organize RNG (random number generator)
related tests that utilize /dev/random device.

Changes:
- Create testing/drivers/rng/ directory structure
- Move nist-sts from testing/drivers/ to testing/drivers/rng/nist-sts
- Update build configuration file paths:
  - CMakeLists.txt
  - Makefile
  - Make.defs
- Maintain all test patches and Kconfig settings

Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
makejian 2025-03-06 22:19:29 +08:00 committed by Xiang Xiao
parent b80d67c628
commit 367e9dca01
7 changed files with 6 additions and 5 deletions

View file

@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/nist-sts/CMakeLists.txt
# apps/testing/drivers/rng/nist-sts/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
@ -32,7 +32,8 @@ if(CONFIG_TESTING_NIST_STS)
FetchContent_Declare(
nist-sts_fetch
URL ${CONFIG_NIST_URL} SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/nist-sts
BINARY_DIR ${CMAKE_BINARY_DIR}/apps/testing/nist-sts/nist-sts
BINARY_DIR
${CMAKE_BINARY_DIR}/apps/testing/drivers/rng/nist-sts/nist-sts
PATCH_COMMAND
patch -p0 -d ${CMAKE_CURRENT_LIST_DIR}/nist-sts <
${CMAKE_CURRENT_LIST_DIR}/0001-Solve-the-memory-out-of-bounds-problem-in-sts.patch

View file

@ -1,5 +1,5 @@
############################################################################
# apps/testing/nist-sts/Make.defs
# apps/testing/drivers/rng/nist-sts/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
@ -21,5 +21,5 @@
############################################################################
ifneq ($(CONFIG_TESTING_NIST_STS),)
CONFIGURED_APPS += $(APPDIR)/testing/nist-sts
CONFIGURED_APPS += $(APPDIR)/testing/drivers/rng/nist-sts
endif

View file

@ -1,5 +1,5 @@
############################################################################
# apps/testing/nist-sts/Makefile
# apps/testing/drivers/rng/nist-sts/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#