diff --git a/testing/drivertest/CMakeLists.txt b/testing/drivertest/CMakeLists.txt index 2185a7bb8..8bae9ce21 100644 --- a/testing/drivertest/CMakeLists.txt +++ b/testing/drivertest/CMakeLists.txt @@ -85,7 +85,7 @@ if(CONFIG_TESTING_DRIVER_TEST) drivertest_timer.c) endif() - if(CONFIG_ONESHOT) + if(CONFIG_TESTING_ONESHOT_TEST) nuttx_add_application( NAME cmocka_driver_oneshot diff --git a/testing/drivertest/Kconfig b/testing/drivertest/Kconfig index b0991737a..e0d073d51 100644 --- a/testing/drivertest/Kconfig +++ b/testing/drivertest/Kconfig @@ -24,4 +24,8 @@ config TESTING_DRIVER_TEST_SIMPLE bool "Enable cmocka driver simple test" default n +config TESTING_ONESHOT_TEST + bool "Enable cmocka oneshot test" + default n + depends on ONESHOT endif diff --git a/testing/drivertest/Makefile b/testing/drivertest/Makefile index 444b3fc6c..aae6992df 100644 --- a/testing/drivertest/Makefile +++ b/testing/drivertest/Makefile @@ -47,7 +47,7 @@ MAINSRC += drivertest_timer.c PROGNAME += cmocka_driver_timer endif -ifneq ($(CONFIG_ONESHOT),) +ifneq ($(CONFIG_TESTING_ONESHOT_TEST),) MAINSRC += drivertest_oneshot.c PROGNAME += cmocka_driver_oneshot endif