summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Wang <[email protected]>2025-07-24 16:53:56 +0800
committerR b b666 <[email protected]>2025-08-26 10:26:47 +0800
commit0fdeb4c077cbae07453dc2de9a57f9d5cf6fc2c5 (patch)
tree9e5e3a37921e564eef214032876b25e096200520
parent532da3482b7ee025b6e72534de7273471656abb5 (diff)
utest: integrate config option for utest of audio driver
Signed-off-by: Chen Wang <[email protected]>
-rw-r--r--Kconfig.utestcases2
-rw-r--r--components/drivers/audio/Kconfig3
-rw-r--r--components/drivers/audio/utest/Kconfig5
3 files changed, 7 insertions, 3 deletions
diff --git a/Kconfig.utestcases b/Kconfig.utestcases
index e1d4dbe9e1..e851ad3959 100644
--- a/Kconfig.utestcases
+++ b/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
diff --git a/components/drivers/audio/Kconfig b/components/drivers/audio/Kconfig
index f6cae1ae6c..48770ac0f0 100644
--- a/components/drivers/audio/Kconfig
+++ b/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
diff --git a/components/drivers/audio/utest/Kconfig b/components/drivers/audio/utest/Kconfig
new file mode 100644
index 0000000000..2ee22aef92
--- /dev/null
+++ b/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 \ No newline at end of file