Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Kconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rsource "src/Kconfig"
rsource "libcpu/Kconfig"
rsource "components/Kconfig"
rsource "examples/utest/testcases/Kconfig"
rsource "Kconfig.utestcases"
28 changes: 28 additions & 0 deletions Kconfig.utestcases
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
menu "RT-Thread Utestcases"

config RT_USING_UTESTCASES
bool "RT-Thread Utestcases"
default n
select RT_USING_UTEST

if RT_USING_UTESTCASES

rsource "examples/utest/testcases/utest/Kconfig"
rsource "examples/utest/testcases/kernel/Kconfig"
rsource "examples/utest/testcases/cpp11/Kconfig"
rsource "examples/utest/testcases/drivers/serial_v2/Kconfig"
rsource "examples/utest/testcases/drivers/serial_bypass/Kconfig"
rsource "examples/utest/testcases/drivers/ipc/Kconfig"
rsource "examples/utest/testcases/posix/Kconfig"
rsource "examples/utest/testcases/mm/Kconfig"
rsource "examples/utest/testcases/tmpfs/Kconfig"
rsource "examples/utest/testcases/smp_call/Kconfig"
rsource "examples/utest/testcases/perf/Kconfig"

rsource "src/klibc/utest/Kconfig"

rsource "components/drivers/audio/utest/Kconfig"

endif

endmenu
3 changes: 0 additions & 3 deletions components/drivers/audio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 5 additions & 0 deletions components/drivers/audio/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if RT_USING_AUDIO
config RT_UTEST_USING_AUDIO_DRIVER
bool "Enable rt_audio_api testcase"
default n
endif
23 changes: 0 additions & 23 deletions examples/utest/testcases/Kconfig

This file was deleted.

5 changes: 0 additions & 5 deletions src/klibc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,4 @@ menu "klibc options"
default n
endmenu # rt_strnlen options

config RT_UTEST_TC_USING_KLIBC
bool "Enable klibc utest cases"
select RT_USING_UTEST
default n

endmenu
4 changes: 4 additions & 0 deletions src/klibc/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config RT_UTEST_TC_USING_KLIBC
bool "Enable klibc utest cases"
select RT_USING_UTEST
default n
4 changes: 2 additions & 2 deletions tools/env_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def get_file_md5(file):

# Exclude utestcases
def exclude_utestcases(RTT_ROOT):
if os.path.isfile(os.path.join(RTT_ROOT, 'examples/utest/testcases/Kconfig')):
if os.path.isfile(os.path.join(RTT_ROOT, 'Kconfig.utestcases')):
return

if not os.path.isfile(os.path.join(RTT_ROOT, 'Kconfig')):
Expand All @@ -337,7 +337,7 @@ def exclude_utestcases(RTT_ROOT):
data = f.readlines()
with open(os.path.join(RTT_ROOT, 'Kconfig'), 'w') as f:
for line in data:
if line.find('examples/utest/testcases/Kconfig') == -1:
if line.find('Kconfig.utestcases') == -1:
f.write(line)


Expand Down
2 changes: 1 addition & 1 deletion tools/mkdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def bsp_update_kconfig_testcases(dist_dir):
data = f.readlines()
with open(os.path.join(dist_dir, 'rt-thread/Kconfig'), 'w') as f:
for line in data:
if line.find('examples/utest/testcases/Kconfig') == -1:
if line.find('Kconfig.utestcases') == -1:
f.write(line)

def bsp_update_kconfig(dist_dir):
Expand Down