ci: update protocol/ethernet pytest markers

This commit is contained in:
Chen Yudong
2024-01-30 18:42:22 +08:00
committed by Rocha Euripedes
parent e9bcb95bc4
commit 1614af31a1
5 changed files with 18 additions and 8 deletions

View File

@@ -1,7 +1,19 @@
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps # Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
components/mqtt/test_apps: components/mqtt/test_apps:
disable:
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: component test apps, needn't build all targets (chosen two, one for each architecture)
disable_test: disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c2"] - if: IDF_TARGET != "esp32"
temporary: false temporary: false
reason: Not needed to test on all targets (chosen two, one for each architecture) reason: Only esp32 target has ethernet runners
depends_components:
- mqtt
- tcp_transport
- app_update
- esp_eth
- esp_netif
- esp_event
depends_filepatterns:
- components/mqtt/test_apps/common/**/*

View File

@@ -1,2 +1,2 @@
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 | | Supported Targets | ESP32 | ESP32-C3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | | ----------------- | ----- | -------- |

View File

@@ -5,7 +5,6 @@ from pytest_embedded import Dut
@pytest.mark.esp32 @pytest.mark.esp32
@pytest.mark.esp32c2
@pytest.mark.ethernet @pytest.mark.ethernet
def test_mqtt_client(dut: Dut) -> None: def test_mqtt_client(dut: Dut) -> None:
dut.expect_unity_test_output() dut.expect_unity_test_output()

View File

@@ -1,2 +1,2 @@
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 | | Supported Targets | ESP32 | ESP32-C3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | | ----------------- | ----- | -------- |

View File

@@ -5,7 +5,6 @@ from pytest_embedded import Dut
@pytest.mark.esp32 @pytest.mark.esp32
@pytest.mark.esp32c2
@pytest.mark.ethernet @pytest.mark.ethernet
def test_mqtt5_client(dut: Dut) -> None: def test_mqtt5_client(dut: Dut) -> None:
dut.expect_unity_test_output() dut.expect_unity_test_output()