mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-25 01:37:22 +00:00
feat(cxx): run c++ tests for esp32c61 and esp32p4
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
| Supported Targets | ESP32 | ESP32-C3 |
|
||||
| ----------------- | ----- | -------- |
|
||||
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C61 | ESP32-P4 |
|
||||
| ----------------- | ----- | -------- | --------- | -------- |
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -13,12 +13,10 @@
|
||||
- 88 bytes are allocated by pthread_setspecific() to init internal lock
|
||||
- some more memory...
|
||||
*/
|
||||
#if CONFIG_IDF_TARGET_ESP32
|
||||
#define LEAKS (300)
|
||||
#elif CONFIG_IDF_TARGET_ESP32S2
|
||||
#define LEAKS (800)
|
||||
#elif CONFIG_IDF_TARGET_ESP32C3
|
||||
#define LEAKS (700)
|
||||
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32C61 || CONFIG_IDF_TARGET_ESP32P4
|
||||
#define LEAKS (128) /* real: 72 */
|
||||
#elif CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32C3
|
||||
#define LEAKS (448) /* real: 396 */
|
||||
#else
|
||||
#error "unknown target in CXX tests, can't set leaks threshold"
|
||||
#endif
|
||||
|
@@ -6,6 +6,6 @@ from pytest_embedded_idf.utils import idf_parametrize
|
||||
|
||||
|
||||
@pytest.mark.generic
|
||||
@idf_parametrize('target', ['esp32', 'esp32c3'], indirect=['target'])
|
||||
@idf_parametrize('target', ['esp32', 'esp32c3', 'esp32c61', 'esp32p4'], indirect=['target'])
|
||||
def test_cxx_exception(dut: Dut) -> None:
|
||||
dut.run_all_single_board_cases()
|
||||
|
Reference in New Issue
Block a user