mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
ci: setup 26mhz esp32c2 runner
This commit is contained in:
parent
fde4afc67a
commit
4ab8f00b47
@ -70,6 +70,14 @@ example_test_pytest_esp32c2_generic:
|
|||||||
- build_pytest_examples_esp32c2
|
- build_pytest_examples_esp32c2
|
||||||
tags: [ esp32c2, generic, xtal_40mhz ]
|
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:
|
example_test_pytest_esp32c3_generic:
|
||||||
extends:
|
extends:
|
||||||
- .pytest_examples_dir_template
|
- .pytest_examples_dir_template
|
||||||
@ -340,6 +348,14 @@ test_app_test_pytest_esp32c2_generic:
|
|||||||
- build_pytest_test_apps_esp32c2
|
- build_pytest_test_apps_esp32c2
|
||||||
tags: [ esp32c2, generic, xtal_40mhz ]
|
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:
|
test_app_test_pytest_esp32c3_generic:
|
||||||
extends:
|
extends:
|
||||||
- .pytest_test_apps_dir_template
|
- .pytest_test_apps_dir_template
|
||||||
@ -654,6 +670,12 @@ test_app_test_esp32c2_generic:
|
|||||||
- Example_GENERIC
|
- Example_GENERIC
|
||||||
- xtal_40mhz
|
- xtal_40mhz
|
||||||
|
|
||||||
|
test_app_test_esp32c2_26mhz:
|
||||||
|
extends: .test_app_esp32c2_template
|
||||||
|
tags:
|
||||||
|
- ESP32C2
|
||||||
|
- xtal_26mhz
|
||||||
|
|
||||||
test_app_test_005:
|
test_app_test_005:
|
||||||
extends: .test_app_esp32c3_template
|
extends: .test_app_esp32c3_template
|
||||||
tags:
|
tags:
|
||||||
@ -923,6 +945,13 @@ UT_C2:
|
|||||||
- UT_T1_1
|
- UT_T1_1
|
||||||
- xtal_40mhz
|
- xtal_40mhz
|
||||||
|
|
||||||
|
UT_C2_26M:
|
||||||
|
extends: .unit_test_esp32c2_template
|
||||||
|
tags:
|
||||||
|
- ESP32C2_IDF
|
||||||
|
- UT_T1_1
|
||||||
|
- xtal_26mhz
|
||||||
|
|
||||||
UT_C3:
|
UT_C3:
|
||||||
extends: .unit_test_esp32c3_template
|
extends: .unit_test_esp32c3_template
|
||||||
parallel: 31
|
parallel: 31
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.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 <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@ -8,7 +13,6 @@
|
|||||||
#include "esp_rom_sys.h"
|
#include "esp_rom_sys.h"
|
||||||
#include "esp_sleep.h"
|
#include "esp_sleep.h"
|
||||||
|
|
||||||
|
|
||||||
static void timer_cb1(void *arg)
|
static void timer_cb1(void *arg)
|
||||||
{
|
{
|
||||||
++*((int*) 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 <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
@ -671,9 +671,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/esp_private/panic_internal.h
|
||||||
components/esp_system/test_eh_frame_parser/linker.ld
|
components/esp_system/test_eh_frame_parser/linker.ld
|
||||||
components/esp_system/ubsan.c
|
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_mesh_internal.h
|
||||||
components/esp_wifi/include/esp_private/esp_wifi_types_private.h
|
components/esp_wifi/include/esp_private/esp_wifi_types_private.h
|
||||||
components/esp_wifi/include/esp_private/wifi_types.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:
|
for ut_config in case_config:
|
||||||
Utility.console_log('Running unit test for config: ' + ut_config, 'O')
|
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)
|
_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')
|
baud = _app.get_sdkconfig_config_value('CONFIG_ESP_CONSOLE_UART_BAUDRATE')
|
||||||
if baud is None:
|
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
|
baud = int(baud, 10) if isinstance(baud, str) else baud
|
||||||
Utility.console_log('Console baudrate is {}'.format(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,
|
dut = env.get_dut('unit-test-app', app_path=UT_APP_PATH, app_config_name=ut_config,
|
||||||
allow_dut_exception=True, baudrate=baud)
|
allow_dut_exception=True, baudrate=baud)
|
||||||
if len(case_config[ut_config]) > 0:
|
if len(case_config[ut_config]) > 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user