Browse Source

utest: integrate config option for utest of audio driver

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Chen Wang 1 tháng trước cách đây
mục cha
commit
0fdeb4c077

+ 2 - 0
Kconfig.utestcases

@@ -21,6 +21,8 @@ rsource "examples/utest/testcases/perf/Kconfig"
 
 rsource "src/klibc/utest/Kconfig"
 
+rsource "components/drivers/audio/utest/Kconfig"
+
 endif
 
 endmenu

+ 0 - 3
components/drivers/audio/Kconfig

@@ -15,7 +15,4 @@ config RT_USING_AUDIO
             int "Record pipe size"
             default 2048
 
-        config RT_UTEST_USING_AUDIO_DRIVER
-            bool "Enable rt_audio_api testcase"
-            default n
     endif

+ 5 - 0
components/drivers/audio/utest/Kconfig

@@ -0,0 +1,5 @@
+if RT_USING_AUDIO
+    config RT_UTEST_USING_AUDIO_DRIVER
+        bool "Enable rt_audio_api testcase"
+        default n
+endif