mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'feature/setup_target_test_for_c2_26m' into 'master'
ci: setup 26mhz esp32c2 runner Closes IDF-5526 See merge request espressif/esp-idf!19032
This commit is contained in:
commit
6658b7eb0a
@ -70,6 +70,14 @@ example_test_pytest_esp32c2_generic:
|
||||
- build_pytest_examples_esp32c2
|
||||
tags: [ esp32c2, generic, xtal_40mhz ]
|
||||
|
||||
example_test_pytest_esp32c2_26mhz:
|
||||
extends:
|
||||
- .pytest_examples_dir_template
|
||||
- .rules:test:example_test-esp32c2
|
||||
needs:
|
||||
- build_pytest_examples_esp32c2
|
||||
tags: [ esp32c2, xtal_26mhz ]
|
||||
|
||||
example_test_pytest_esp32c3_generic:
|
||||
extends:
|
||||
- .pytest_examples_dir_template
|
||||
@ -340,6 +348,14 @@ test_app_test_pytest_esp32c2_generic:
|
||||
- build_pytest_test_apps_esp32c2
|
||||
tags: [ esp32c2, generic, xtal_40mhz ]
|
||||
|
||||
test_app_test_pytest_esp32c2_26mhz:
|
||||
extends:
|
||||
- .pytest_test_apps_dir_template
|
||||
- .rules:test:custom_test-esp32c2
|
||||
needs:
|
||||
- build_pytest_test_apps_esp32c2
|
||||
tags: [ esp32c2, xtal_26mhz ]
|
||||
|
||||
test_app_test_pytest_esp32c3_generic:
|
||||
extends:
|
||||
- .pytest_test_apps_dir_template
|
||||
@ -654,6 +670,12 @@ test_app_test_esp32c2_generic:
|
||||
- Example_GENERIC
|
||||
- xtal_40mhz
|
||||
|
||||
test_app_test_esp32c2_26mhz:
|
||||
extends: .test_app_esp32c2_template
|
||||
tags:
|
||||
- ESP32C2
|
||||
- xtal_26mhz
|
||||
|
||||
test_app_test_005:
|
||||
extends: .test_app_esp32c3_template
|
||||
tags:
|
||||
@ -923,6 +945,13 @@ UT_C2:
|
||||
- UT_T1_1
|
||||
- xtal_40mhz
|
||||
|
||||
UT_C2_26M:
|
||||
extends: .unit_test_esp32c2_template
|
||||
tags:
|
||||
- ESP32C2_IDF
|
||||
- UT_T1_1
|
||||
- xtal_26mhz
|
||||
|
||||
UT_C3:
|
||||
extends: .unit_test_esp32c3_template
|
||||
parallel: 31
|
||||
|
@ -1,3 +1,8 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
@ -1,3 +1,8 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
@ -8,7 +13,6 @@
|
||||
#include "esp_rom_sys.h"
|
||||
#include "esp_sleep.h"
|
||||
|
||||
|
||||
static void timer_cb1(void *arg)
|
||||
{
|
||||
++*((int*) arg);
|
||||
|
@ -1,3 +1,8 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
@ -669,9 +669,6 @@ components/esp_system/test_eh_frame_parser/eh_frame_parser_impl.h
|
||||
components/esp_system/test_eh_frame_parser/esp_private/panic_internal.h
|
||||
components/esp_system/test_eh_frame_parser/linker.ld
|
||||
components/esp_system/ubsan.c
|
||||
components/esp_timer/test/test_esp_timer.c
|
||||
components/esp_timer/test/test_esp_timer_light_sleep.c
|
||||
components/esp_timer/test/test_ets_timer.c
|
||||
components/esp_wifi/include/esp_mesh_internal.h
|
||||
components/esp_wifi/include/esp_private/esp_wifi_types_private.h
|
||||
components/esp_wifi/include/esp_private/wifi_types.h
|
||||
|
5
tools/unit-test-app/configs/default_c2_26mhz
Normal file
5
tools/unit-test-app/configs/default_c2_26mhz
Normal file
@ -0,0 +1,5 @@
|
||||
# This config is split between targets since different component needs to be included
|
||||
CONFIG_IDF_TARGET="esp32c2"
|
||||
CONFIG_ESP32C2_XTAL_FREQ_26=y
|
||||
|
||||
TEST_COMPONENTS=esp_timer
|
@ -297,6 +297,7 @@ def run_unit_test_cases(env, extra_data):
|
||||
for ut_config in case_config:
|
||||
Utility.console_log('Running unit test for config: ' + ut_config, 'O')
|
||||
|
||||
# Get the console baudrate from the sdkconfig
|
||||
_app = ttfw_idf.UT(app_path=UT_APP_PATH, config_name=ut_config, target=env.default_dut_cls.TARGET)
|
||||
baud = _app.get_sdkconfig_config_value('CONFIG_ESP_CONSOLE_UART_BAUDRATE')
|
||||
if baud is None:
|
||||
@ -306,6 +307,7 @@ def run_unit_test_cases(env, extra_data):
|
||||
baud = int(baud, 10) if isinstance(baud, str) else baud
|
||||
Utility.console_log('Console baudrate is {}'.format(baud))
|
||||
|
||||
# Get the DUT with specified baudrate
|
||||
dut = env.get_dut('unit-test-app', app_path=UT_APP_PATH, app_config_name=ut_config,
|
||||
allow_dut_exception=True, baudrate=baud)
|
||||
if len(case_config[ut_config]) > 0:
|
||||
|
Loading…
Reference in New Issue
Block a user