ci: move linux host tests to test app folder

This commit is contained in:
Marius Vikhammer
2023-03-27 17:41:44 +08:00
parent 55fd7d43c1
commit 914bb81b95
63 changed files with 26 additions and 38 deletions

View File

@@ -14,6 +14,9 @@ components/esp_hw_support/test_apps/etm:
disable: disable:
- if: SOC_ETM_SUPPORTED != 1 - if: SOC_ETM_SUPPORTED != 1
components/esp_hw_support/test_apps/host_test_linux:
enable:
- if: IDF_TARGET == "linux"
components/esp_hw_support/test_apps/mspi: components/esp_hw_support/test_apps/mspi:
disable: disable:
- if: IDF_TARGET != "esp32s3" - if: IDF_TARGET != "esp32s3"
@@ -29,7 +32,3 @@ components/esp_hw_support/test_apps/security_support/esp_hw_support_unity_tests:
- if: IDF_TARGET in ["esp32h2"] - if: IDF_TARGET in ["esp32h2"]
temporary: true temporary: true
reason: H2 fails IDF-6898 reason: H2 fails IDF-6898
components/heap/host_test/host_test_linux:
enable:
- if: IDF_TARGET == "linux"

View File

@@ -16,6 +16,4 @@ from pytest_embedded import Dut
indirect=True, indirect=True,
) )
def test_esp_hw_support(dut: Dut) -> None: def test_esp_hw_support(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests') dut.run_all_single_board_cases(timeout=120)
dut.write('![ignore]')
dut.expect_unity_test_output(timeout=120)

View File

@@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */

View File

@@ -7,6 +7,4 @@ from pytest_embedded import Dut
@pytest.mark.linux @pytest.mark.linux
@pytest.mark.host_test @pytest.mark.host_test
def test_esp_hw_support_linux(dut: Dut) -> None: def test_esp_hw_support_linux(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests.') dut.run_all_single_board_cases()
dut.write('*')
dut.expect_unity_test_output(timeout=5)

View File

@@ -15,6 +15,4 @@ from pytest_embedded import Dut
indirect=True, indirect=True,
) )
def test_security_support(dut: Dut) -> None: def test_security_support(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests') dut.run_all_single_board_cases(timeout=120)
dut.write('![ignore]')
dut.expect_unity_test_output(timeout=120)

View File

@@ -1,12 +1,6 @@
# 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/esp_rom/host_test/rom_test: components/esp_rom/test_apps/linux_rom_apis:
enable: enable:
- if: IDF_TARGET == "linux" - if: IDF_TARGET == "linux"
reason: only test on linux reason: only test on linux
components/esp_rom/test_apps:
disable_test:
- if: IDF_TARGET in ["esp32", "esp32c2"]
temporary: false
reason: lack of memory for testing miniz compressing

View File

@@ -1,3 +1,8 @@
/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Unlicense OR CC0-1.0
*/
/* LOG unit tests /* LOG unit tests
This example code is in the Public Domain (or CC0 licensed, at your option.) This example code is in the Public Domain (or CC0 licensed, at your option.)

View File

@@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Unlicense OR CC0-1.0 * SPDX-License-Identifier: Unlicense OR CC0-1.0
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Unlicense OR CC0-1.0 * SPDX-License-Identifier: Unlicense OR CC0-1.0
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Unlicense OR CC0-1.0 * SPDX-License-Identifier: Unlicense OR CC0-1.0
*/ */

View File

@@ -1,6 +1,6 @@
# 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/esp_system/host_test/esp_system: components/esp_system/test_apps/linux_apis:
enable: enable:
- if: IDF_TARGET == "linux" - if: IDF_TARGET == "linux"

View File

@@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */

View File

@@ -7,6 +7,4 @@ from pytest_embedded import Dut
@pytest.mark.linux @pytest.mark.linux
@pytest.mark.host_test @pytest.mark.host_test
def test_esp_system_linux(dut: Dut) -> None: def test_esp_system_linux(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests.') dut.run_all_single_board_cases()
dut.write('*')
dut.expect_unity_test_output(timeout=10)

View File

@@ -1,5 +1,5 @@
# 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/heap/host_test/host_test_linux: components/heap/test_apps/host_test_linux:
enable: enable:
- if: IDF_TARGET == "linux" - if: IDF_TARGET == "linux"

View File

@@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */

View File

@@ -7,6 +7,4 @@ from pytest_embedded import Dut
@pytest.mark.linux @pytest.mark.linux
@pytest.mark.host_test @pytest.mark.host_test
def test_heap_linux(dut: Dut) -> None: def test_heap_linux(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests.') dut.run_all_single_board_cases()
dut.write('*')
dut.expect_unity_test_output(timeout=10)

View File

@@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Unlicense OR CC0-1.0 * SPDX-License-Identifier: Unlicense OR CC0-1.0
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Unlicense OR CC0-1.0 * SPDX-License-Identifier: Unlicense OR CC0-1.0
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Unlicense OR CC0-1.0 * SPDX-License-Identifier: Unlicense OR CC0-1.0
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Unlicense OR CC0-1.0 * SPDX-License-Identifier: Unlicense OR CC0-1.0
*/ */