Skip to content

Commit 5349f87

Browse files
committed
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>
1 parent ebe2dd5 commit 5349f87

File tree

7 files changed

+6
-5
lines changed

7 files changed

+6
-5
lines changed

testing/nist-sts/0001-Solve-the-memory-out-of-bounds-problem-in-sts.patch renamed to testing/drivers/rng/nist-sts/0001-Solve-the-memory-out-of-bounds-problem-in-sts.patch

File renamed without changes.

testing/nist-sts/0002-Fix-bug-that-crash-in-running-a-single-test-after-ru.patch renamed to testing/drivers/rng/nist-sts/0002-Fix-bug-that-crash-in-running-a-single-test-after-ru.patch

File renamed without changes.

testing/nist-sts/CMakeLists.txt renamed to testing/drivers/rng/nist-sts/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ##############################################################################
2-
# apps/testing/nist-sts/CMakeLists.txt
2+
# apps/testing/drivers/rng/nist-sts/CMakeLists.txt
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
@@ -32,7 +32,8 @@ if(CONFIG_TESTING_NIST_STS)
3232
FetchContent_Declare(
3333
nist-sts_fetch
3434
URL ${CONFIG_NIST_URL} SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/nist-sts
35-
BINARY_DIR ${CMAKE_BINARY_DIR}/apps/testing/nist-sts/nist-sts
35+
BINARY_DIR
36+
${CMAKE_BINARY_DIR}/apps/testing/drivers/rng/nist-sts/nist-sts
3637
PATCH_COMMAND
3738
patch -p0 -d ${CMAKE_CURRENT_LIST_DIR}/nist-sts <
3839
${CMAKE_CURRENT_LIST_DIR}/0001-Solve-the-memory-out-of-bounds-problem-in-sts.patch
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
############################################################################
2-
# apps/testing/nist-sts/Make.defs
2+
# apps/testing/drivers/rng/nist-sts/Make.defs
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
@@ -21,5 +21,5 @@
2121
############################################################################
2222

2323
ifneq ($(CONFIG_TESTING_NIST_STS),)
24-
CONFIGURED_APPS += $(APPDIR)/testing/nist-sts
24+
CONFIGURED_APPS += $(APPDIR)/testing/drivers/rng/nist-sts
2525
endif
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
############################################################################
2-
# apps/testing/nist-sts/Makefile
2+
# apps/testing/drivers/rng/nist-sts/Makefile
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#

0 commit comments

Comments
 (0)