mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
Split component_ut tests based on targets
- add more label in CIScanTest.py - fix the bug that will cause labels not iterate correctly
This commit is contained in:
parent
6fd2d27bfd
commit
7281a5a0cc
@ -72,6 +72,16 @@
|
||||
# run test
|
||||
- python Runner.py $COMPONENT_UT_DIRS -c $CONFIG_FILE -e $ENV_FILE
|
||||
|
||||
.component_ut_32_template:
|
||||
extends:
|
||||
- .component_ut_template
|
||||
- .rules:tests:unit_test_32
|
||||
|
||||
.component_ut_s2_template: # unused yet
|
||||
extends:
|
||||
- .component_ut_template
|
||||
- .rules:tests:unit_test_s2
|
||||
|
||||
.unit_test_template:
|
||||
extends:
|
||||
- .target_test_job_template
|
||||
@ -336,7 +346,7 @@ test_app_test_004:
|
||||
- Example_GENERIC
|
||||
|
||||
component_ut_test_001:
|
||||
extends: .component_ut_template
|
||||
extends: .component_ut_32_template
|
||||
tags:
|
||||
- ESP32
|
||||
- COMPONENT_UT_GENERIC
|
||||
|
@ -13,7 +13,9 @@ from idf_py_actions.constants import SUPPORTED_TARGETS, PREVIEW_TARGETS
|
||||
TEST_LABELS = {
|
||||
'example_test': 'BOT_LABEL_EXAMPLE_TEST',
|
||||
'test_apps': 'BOT_LABEL_CUSTOM_TEST',
|
||||
'component_ut': ['BOT_LABEL_UNIT_TEST', 'BOT_LABEL_UNIT_TEST_S2'],
|
||||
'component_ut': ['BOT_LABEL_UNIT_TEST',
|
||||
'BOT_LABEL_UNIT_TEST_32',
|
||||
'BOT_LABEL_UNIT_TEST_S2'],
|
||||
}
|
||||
|
||||
BUILD_ALL_LABELS = [
|
||||
@ -45,11 +47,10 @@ def _judge_build_or_not(action, build_all): # type: (str, bool) -> (bool, bool)
|
||||
|
||||
for label in labels:
|
||||
if os.getenv(label):
|
||||
logging.info('Build test cases apps')
|
||||
logging.info('Build only test cases apps')
|
||||
return True, False
|
||||
else:
|
||||
logging.info('Skip all')
|
||||
return False, False
|
||||
logging.info('Skip all')
|
||||
return False, False
|
||||
|
||||
|
||||
def output_json(apps_dict_list, target, build_system, output_dir):
|
||||
|
Loading…
Reference in New Issue
Block a user