ci: re-enable cxx tests_apps and examples for the ESP32-P4

This commit is contained in:
Omar Chebib
2025-11-21 15:54:41 +08:00
committed by Sudeep Mohanty
parent a5bce887ab
commit 56c71ffc0d
12 changed files with 16 additions and 35 deletions
@@ -2,10 +2,6 @@
components/cxx/test_apps:
enable:
- if: IDF_TARGET in ["esp32", "esp32c3"]
- if: IDF_TARGET in ["esp32", "esp32c3", "esp32p4"]
temporary: true
reason: the other targets are not tested yet
disable:
- if: IDF_TARGET == "esp32p4"
temporary: true
reason: p4 rev3 migration # TODO: IDF-14402
+2 -2
View File
@@ -1,2 +1,2 @@
| Supported Targets | ESP32 | ESP32-C3 |
| ----------------- | ----- | -------- |
| Supported Targets | ESP32 | ESP32-C3 | ESP32-P4 |
| ----------------- | ----- | -------- | -------- |
@@ -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', 'esp32p4'], indirect=['target'])
def test_cxx_exception(dut: Dut) -> None:
dut.run_all_single_board_cases()
@@ -1,2 +1,2 @@
| Supported Targets | ESP32 | ESP32-C3 |
| ----------------- | ----- | -------- |
| Supported Targets | ESP32 | ESP32-C3 | ESP32-P4 |
| ----------------- | ----- | -------- | -------- |
@@ -6,7 +6,7 @@ from pytest_embedded_idf.utils import idf_parametrize
@pytest.mark.generic
@idf_parametrize('target', ['esp32', 'esp32c3'], indirect=['target'])
@idf_parametrize('target', ['esp32', 'esp32c3', 'esp32p4'], indirect=['target'])
def test_cxx_noexcept_out_of_range(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('1')
@@ -15,7 +15,7 @@ def test_cxx_noexcept_out_of_range(dut: Dut) -> None:
@pytest.mark.generic
@idf_parametrize('target', ['esp32', 'esp32c3'], indirect=['target'])
@idf_parametrize('target', ['esp32', 'esp32c3', 'esp32p4'], indirect=['target'])
def test_cxx_noexcept_bad_alloc(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('2')
+2 -2
View File
@@ -1,2 +1,2 @@
| Supported Targets | ESP32 | ESP32-C3 |
| ----------------- | ----- | -------- |
| Supported Targets | ESP32 | ESP32-C3 | ESP32-P4 |
| ----------------- | ----- | -------- | -------- |
@@ -9,21 +9,21 @@ configurations = ['noexcept', 'exceptions_rtti']
@pytest.mark.generic
@pytest.mark.parametrize('config', configurations, indirect=True)
@idf_parametrize('target', ['esp32', 'esp32c3'], indirect=['target'])
@idf_parametrize('target', ['esp32', 'esp32c3', 'esp32p4'], indirect=['target'])
def test_cxx_static_init_non_pod(dut: Dut) -> None:
dut.run_all_single_board_cases(name=['can use static initializers for non-POD types'])
@pytest.mark.generic
@pytest.mark.parametrize('config', configurations, indirect=True)
@idf_parametrize('target', ['esp32', 'esp32c3'], indirect=['target'])
@idf_parametrize('target', ['esp32', 'esp32c3', 'esp32p4'], indirect=['target'])
def test_cxx_misc(dut: Dut) -> None:
dut.run_all_single_board_cases(group='misc')
@pytest.mark.generic
@pytest.mark.parametrize('config', configurations, indirect=True)
@idf_parametrize('target', ['esp32', 'esp32c3'], indirect=['target'])
@idf_parametrize('target', ['esp32', 'esp32c3', 'esp32p4'], indirect=['target'])
def test_cxx_stack_smash(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('"stack smashing protection CXX"')
+2 -2
View File
@@ -1,2 +1,2 @@
| Supported Targets | ESP32 | ESP32-C3 |
| ----------------- | ----- | -------- |
| Supported Targets | ESP32 | ESP32-C3 | ESP32-P4 |
| ----------------- | ----- | -------- | -------- |
@@ -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', 'esp32p4'], indirect=['target'])
def test_cxx_rtti(dut: Dut) -> None:
dut.run_all_single_board_cases()
-13
View File
@@ -1,13 +0,0 @@
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
examples/cxx/exceptions:
disable_test:
- if: IDF_TARGET == "esp32p4"
temporary: true
reason: p4 rev3 migration # TODO: IDF-14402
examples/cxx/rtti:
disable_test:
- if: IDF_TARGET == "esp32p4"
temporary: true
reason: p4 rev3 migration # TODO: IDF-14402
@@ -7,7 +7,6 @@ from pytest_embedded_idf.utils import idf_parametrize
@pytest.mark.generic
@idf_parametrize('target', ['supported_targets'], indirect=['target'])
@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='p4 rev3 migration # TODO: IDF-14402')
def test_examples_cpp_exceptions(dut: IdfDut) -> None:
lines = [
'app_main starting',
@@ -7,7 +7,6 @@ from pytest_embedded_idf.utils import idf_parametrize
@pytest.mark.generic
@idf_parametrize('target', ['supported_targets'], indirect=['target'])
@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='p4 rev3 migration # TODO: IDF-14402')
def test_cpp_rtti_example(dut: IdfDut) -> None:
dut.expect_exact('Type name of std::cout is: std::ostream')
dut.expect_exact('Type name of std::cin is: std::istream')