From 77a714656268f3fafcab30e98d1bc9fc66c6b1f1 Mon Sep 17 00:00:00 2001 From: tengshuangshuang Date: Fri, 3 Jan 2025 15:17:16 +0800 Subject: [PATCH 1/3] testing: specify arch format Kconfig Specify architecture format in Kconfig to ensure proper configuration handling for different architectures in testing modules. Signed-off-by: tengshuangshuang --- testing/libc/arch_libc/Kconfig | 2 +- testing/testsuites/Kconfig | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/testing/libc/arch_libc/Kconfig b/testing/libc/arch_libc/Kconfig index c8bdfa9f2d7..65927909cbb 100644 --- a/testing/libc/arch_libc/Kconfig +++ b/testing/libc/arch_libc/Kconfig @@ -14,7 +14,7 @@ if TESTING_ARCH_LIBC config TESTING_ARCH_LIBC_STRCPY bool "test strcpy" - default n + default y config TESTING_ARCH_LIBC_PROGNAME string "Program name" diff --git a/testing/testsuites/Kconfig b/testing/testsuites/Kconfig index 8ed01ffcfae..8c1eb2015c4 100644 --- a/testing/testsuites/Kconfig +++ b/testing/testsuites/Kconfig @@ -12,6 +12,8 @@ config TESTS_TESTSUITES if TESTS_TESTSUITES +menu "Testsuite cases" + config TESTS_TESTSUITES_MOUNT_DIR string "Mount directory for the testsuites" default "/data" @@ -27,19 +29,36 @@ config TESTS_TESTSUITES_STACKSIZE config CM_FS_TEST bool "enable fs test" default n + depends on PSEUDOFS_SOFTLINKS config CM_SCHED_TEST bool "enable schedule test" default n +config CM_SYSCALL_TEST + bool "enbale syscall test" + default n + depends on PIPES && SCHED_HAVE_PARENT + config CM_MM_TEST bool "enable MM test" default n +config CM_KVDB_TEST + bool "enbale kvdb test" + default n + depends on KVDB + config CM_TIME_TEST bool "enable time test" depends on !DISABLE_POSIX_TIMERS && SIG_EVTHREAD default n + depends on SIG_EVTHREAD + +config CM_SOCKET_TEST + bool "enbale socket test" + default n + depends on NET && NETDEV_LATEINIT config CM_PTHREAD_TEST bool "enable pthread test" @@ -58,4 +77,10 @@ config CM_MUTEX_TEST bool "enable mutex test" default n +config CM_DFX_TEST + bool "enbale dfx test" + default n + depends on NETUTILS_CJSON && DFX && DFX_EVENT + +endmenu endif # TESTS_TESTSUITES From 6d99da52afcd80a53d99420994f759b6d80d9347 Mon Sep 17 00:00:00 2001 From: tengshuangshuang Date: Mon, 13 Jan 2025 10:48:24 +0800 Subject: [PATCH 2/3] testing: specify sched kconfig Specify scheduler-related Kconfig settings to ensure proper configuration handling for scheduler test modules. Signed-off-by: tengshuangshuang From a210d741d2a96cd0c7d9470d7f58360ceaf7c579 Mon Sep 17 00:00:00 2001 From: tengshuangshuang Date: Wed, 8 Jan 2025 22:02:49 +0800 Subject: [PATCH 3/3] testing: specify arch kconfig for testsuites Specify architecture configuration in testsuites Kconfig to ensure correct architecture-specific settings and build configurations. Signed-off-by: tengshuangshuang --- testing/testsuites/Kconfig | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/testing/testsuites/Kconfig b/testing/testsuites/Kconfig index 8c1eb2015c4..eb2cd4547bf 100644 --- a/testing/testsuites/Kconfig +++ b/testing/testsuites/Kconfig @@ -35,30 +35,14 @@ config CM_SCHED_TEST bool "enable schedule test" default n -config CM_SYSCALL_TEST - bool "enbale syscall test" - default n - depends on PIPES && SCHED_HAVE_PARENT - config CM_MM_TEST bool "enable MM test" default n -config CM_KVDB_TEST - bool "enbale kvdb test" - default n - depends on KVDB - config CM_TIME_TEST bool "enable time test" depends on !DISABLE_POSIX_TIMERS && SIG_EVTHREAD default n - depends on SIG_EVTHREAD - -config CM_SOCKET_TEST - bool "enbale socket test" - default n - depends on NET && NETDEV_LATEINIT config CM_PTHREAD_TEST bool "enable pthread test" @@ -66,21 +50,17 @@ config CM_PTHREAD_TEST config CM_SOCKET_TEST bool "enable socket test" - depends on NET default n + depends on NET && NETDEV_LATEINIT config CM_SYSCALL_TEST bool "enable syscall test" default n + depends on PIPES && SCHED_HAVE_PARENT && FS_TMPFS && ARCH_SETJMP_H && PSEUDOFS_SOFTLINKS config CM_MUTEX_TEST bool "enable mutex test" default n -config CM_DFX_TEST - bool "enbale dfx test" - default n - depends on NETUTILS_CJSON && DFX && DFX_EVENT - endmenu endif # TESTS_TESTSUITES