summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCYFS <[email protected]>2026-06-11 15:51:46 +0800
committerRbb666 <[email protected]>2026-06-12 14:22:53 +0800
commitbb4aace00f49ea89d0888d1d4af65142fc82c469 (patch)
tree6ccbecf173094bb49b6384b0f3b785b9cc22ae6f /tools
parent103d4c1d92f3844dfcf4473957593af3449bec06 (diff)
utest: move utestcases Kconfig to utest component
Signed-off-by: CYFS <[email protected]>
Diffstat (limited to 'tools')
-rw-r--r--tools/env_utility.py6
-rw-r--r--tools/mkdist.py9
2 files changed, 11 insertions, 4 deletions
diff --git a/tools/env_utility.py b/tools/env_utility.py
index d7904ff005..639ab530b7 100644
--- a/tools/env_utility.py
+++ b/tools/env_utility.py
@@ -327,7 +327,9 @@ def get_file_md5(file):
# Exclude utestcases
def exclude_utestcases(RTT_ROOT):
- if os.path.isfile(os.path.join(RTT_ROOT, 'Kconfig.utestcases')):
+ utestcases_kconfig = os.path.join(RTT_ROOT, 'components', 'utilities', 'utest', 'Kconfig')
+
+ if os.path.isfile(utestcases_kconfig):
return
if not os.path.isfile(os.path.join(RTT_ROOT, 'Kconfig')):
@@ -337,7 +339,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('Kconfig.utestcases') == -1:
+ if line.find('components/utilities/utest/Kconfig') == -1:
f.write(line)
diff --git a/tools/mkdist.py b/tools/mkdist.py
index 838ae15ad5..ddbbc3dc51 100644
--- a/tools/mkdist.py
+++ b/tools/mkdist.py
@@ -110,6 +110,11 @@ def bsp_update_sconstruct(dist_dir):
f.write(line)
def bsp_update_kconfig_testcases(dist_dir):
+ utestcases_kconfig = os.path.join(dist_dir, 'rt-thread/components/utilities/utest/Kconfig')
+
+ if os.path.isfile(utestcases_kconfig):
+ return
+
# delete testcases in rt-thread/Kconfig
if not os.path.isfile(os.path.join(dist_dir, 'rt-thread/Kconfig')):
return
@@ -118,7 +123,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('Kconfig.utestcases') == -1:
+ if line.find('components/utilities/utest/Kconfig') == -1:
f.write(line)
def bsp_update_kconfig(dist_dir):
@@ -336,4 +341,4 @@ def MkDist_Strip(program, BSP_ROOT, RTT_ROOT, env, project_name, project_path=No
if project_path is None:
zip_dist(dist_dir, project_name)
print("Distribution package created: {}.zip".format(dist_dir))
- print('=> Distribution stripped successfully') \ No newline at end of file
+ print('=> Distribution stripped successfully')