From 9a4afbcb62df9dd262c260b29be3d36349458047 Mon Sep 17 00:00:00 2001 From: vela-mib Date: Wed, 10 Apr 2024 17:26:27 +0800 Subject: [PATCH] add drivertest test cases on sim for CI Signed-off-by: vela-mib --- boards/sim/sim/sim/configs/citest/defconfig | 11 +++++++++++ tools/ci/testrun/script/test_framework/test_cmocka.py | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/boards/sim/sim/sim/configs/citest/defconfig b/boards/sim/sim/sim/configs/citest/defconfig index 6ad7a4719c..c67f4eae55 100644 --- a/boards/sim/sim/sim/configs/citest/defconfig +++ b/boards/sim/sim/sim/configs/citest/defconfig @@ -95,17 +95,26 @@ CONFIG_NET_LOCAL=y CONFIG_NET_USRSOCK=y CONFIG_NSH_ARCHINIT=y CONFIG_NSH_BUILTIN_APPS=y +CONFIG_NSH_DISABLE_DATE=y +CONFIG_NSH_DISABLE_TIMEDATECTL=y CONFIG_NSH_MOTD=y CONFIG_NSH_MOTD_STRING="MOTD: username=admin password=Administrator" CONFIG_NSH_READLINE=y CONFIG_PATH_INITIAL="/bin" +CONFIG_PM=y +CONFIG_PM_RUNTIME=y CONFIG_PSEUDOFS_ATTRIBUTES=y CONFIG_PSEUDOFS_SOFTLINKS=y CONFIG_PTHREAD_CLEANUP_STACKSIZE=4 CONFIG_PTHREAD_SPINLOCKS=y CONFIG_PTHREAD_STACK_MIN=2048 CONFIG_READLINE_TABCOMPLETION=y +CONFIG_REGULATOR=y CONFIG_RR_INTERVAL=10 +CONFIG_RTC=y +CONFIG_RTC_ARCH=y +CONFIG_RTC_DATETIME=y +CONFIG_RTC_DRIVER=y CONFIG_SCHED_BACKTRACE=y CONFIG_SCHED_CHILD_STATUS=y CONFIG_SCHED_HAVE_PARENT=y @@ -123,6 +132,8 @@ CONFIG_SYSTEM_NSH=y CONFIG_SYSTEM_POPEN=y CONFIG_TESTING_CMOCKA=y CONFIG_TESTING_CXXTEST=y +CONFIG_TESTING_DRIVER_TEST=y +CONFIG_TESTING_DRIVER_TEST_SIMPLE=y CONFIG_TESTING_FMEMOPEN_TEST=y CONFIG_TESTING_FOPENCOOKIE_TEST=y CONFIG_TESTING_FSTEST=y diff --git a/tools/ci/testrun/script/test_framework/test_cmocka.py b/tools/ci/testrun/script/test_framework/test_cmocka.py index 251b7dcdb6..7d5f4d7b9b 100644 --- a/tools/ci/testrun/script/test_framework/test_cmocka.py +++ b/tools/ci/testrun/script/test_framework/test_cmocka.py @@ -27,7 +27,8 @@ def test_cmocka(p): p.sendCommand(f"echo {cmocka_test_start}") ret = p.sendCommand( - "cmocka --skip test_playback.*|test_interaction.*|test_stress.*|test_capture.*", + "cmocka --skip test_case_posix_timer|test_case_oneshot|write_default|read_default|burst_test|gpiotest01|" + "test_playback.*|test_interaction.*|test_stress.*|test_capture.*", "Cmocka Test Completed", timeout=1200, )