소스 검색

utest: integrate config option for utest of audio driver

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Chen Wang 1 개월 전
부모
커밋
0fdeb4c077
3개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 0
      Kconfig.utestcases
  2. 0 3
      components/drivers/audio/Kconfig
  3. 5 0
      components/drivers/audio/utest/Kconfig

+ 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