add drivertest test cases on sim for CI

Signed-off-by: vela-mib <vela-mib@xiaomi.com>
This commit is contained in:
vela-mib 2024-04-10 17:26:27 +08:00 committed by Alan Carvalho de Assis
parent 24df2cc177
commit 9a4afbcb62
2 changed files with 13 additions and 1 deletions

View File

@ -95,17 +95,26 @@ CONFIG_NET_LOCAL=y
CONFIG_NET_USRSOCK=y CONFIG_NET_USRSOCK=y
CONFIG_NSH_ARCHINIT=y CONFIG_NSH_ARCHINIT=y
CONFIG_NSH_BUILTIN_APPS=y CONFIG_NSH_BUILTIN_APPS=y
CONFIG_NSH_DISABLE_DATE=y
CONFIG_NSH_DISABLE_TIMEDATECTL=y
CONFIG_NSH_MOTD=y CONFIG_NSH_MOTD=y
CONFIG_NSH_MOTD_STRING="MOTD: username=admin password=Administrator" CONFIG_NSH_MOTD_STRING="MOTD: username=admin password=Administrator"
CONFIG_NSH_READLINE=y CONFIG_NSH_READLINE=y
CONFIG_PATH_INITIAL="/bin" CONFIG_PATH_INITIAL="/bin"
CONFIG_PM=y
CONFIG_PM_RUNTIME=y
CONFIG_PSEUDOFS_ATTRIBUTES=y CONFIG_PSEUDOFS_ATTRIBUTES=y
CONFIG_PSEUDOFS_SOFTLINKS=y CONFIG_PSEUDOFS_SOFTLINKS=y
CONFIG_PTHREAD_CLEANUP_STACKSIZE=4 CONFIG_PTHREAD_CLEANUP_STACKSIZE=4
CONFIG_PTHREAD_SPINLOCKS=y CONFIG_PTHREAD_SPINLOCKS=y
CONFIG_PTHREAD_STACK_MIN=2048 CONFIG_PTHREAD_STACK_MIN=2048
CONFIG_READLINE_TABCOMPLETION=y CONFIG_READLINE_TABCOMPLETION=y
CONFIG_REGULATOR=y
CONFIG_RR_INTERVAL=10 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_BACKTRACE=y
CONFIG_SCHED_CHILD_STATUS=y CONFIG_SCHED_CHILD_STATUS=y
CONFIG_SCHED_HAVE_PARENT=y CONFIG_SCHED_HAVE_PARENT=y
@ -123,6 +132,8 @@ CONFIG_SYSTEM_NSH=y
CONFIG_SYSTEM_POPEN=y CONFIG_SYSTEM_POPEN=y
CONFIG_TESTING_CMOCKA=y CONFIG_TESTING_CMOCKA=y
CONFIG_TESTING_CXXTEST=y CONFIG_TESTING_CXXTEST=y
CONFIG_TESTING_DRIVER_TEST=y
CONFIG_TESTING_DRIVER_TEST_SIMPLE=y
CONFIG_TESTING_FMEMOPEN_TEST=y CONFIG_TESTING_FMEMOPEN_TEST=y
CONFIG_TESTING_FOPENCOOKIE_TEST=y CONFIG_TESTING_FOPENCOOKIE_TEST=y
CONFIG_TESTING_FSTEST=y CONFIG_TESTING_FSTEST=y

View File

@ -27,7 +27,8 @@ def test_cmocka(p):
p.sendCommand(f"echo {cmocka_test_start}") p.sendCommand(f"echo {cmocka_test_start}")
ret = p.sendCommand( 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", "Cmocka Test Completed",
timeout=1200, timeout=1200,
) )