mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 21:24:32 +02:00
Merge branch 'feature/unify_core_host_target_tests' into 'master'
ci: unify core host target tests Closes IDF-6621, IDF-6622, IDF-6623, and IDF-6624 See merge request espressif/esp-idf!22944
This commit is contained in:
@@ -20,9 +20,7 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_legacy_adc(dut: Dut) -> None:
|
def test_legacy_adc(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=240)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c2
|
@pytest.mark.esp32c2
|
||||||
@@ -36,6 +34,4 @@ def test_legacy_adc(dut: Dut) -> None:
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_legacy_adc_esp32c2_xtal_26mhz(dut: Dut) -> None:
|
def test_legacy_adc_esp32c2_xtal_26mhz(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=240)
|
|
||||||
|
@@ -18,6 +18,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_legacy_mcpwm(dut: Dut) -> None:
|
def test_legacy_mcpwm(dut: Dut) -> None:
|
||||||
dut.expect('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@@ -19,6 +19,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_legacy_pcnt(dut: Dut) -> None:
|
def test_legacy_pcnt(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases(timeout=240)
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output(timeout=240)
|
|
||||||
|
@@ -16,6 +16,4 @@ from pytest_embedded import Dut
|
|||||||
'release',
|
'release',
|
||||||
], indirect=True)
|
], indirect=True)
|
||||||
def test_legacy_rmt(dut: Dut) -> None:
|
def test_legacy_rmt(dut: Dut) -> None:
|
||||||
dut.expect('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases(timeout=120)
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output(timeout=120)
|
|
||||||
|
@@ -11,6 +11,4 @@ from pytest_embedded import Dut
|
|||||||
'release',
|
'release',
|
||||||
], indirect=True)
|
], indirect=True)
|
||||||
def test_legacy_timer_driver(dut: Dut) -> None:
|
def test_legacy_timer_driver(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases(timeout=120)
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output(timeout=120)
|
|
||||||
|
@@ -19,6 +19,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_mcpwm(dut: Dut) -> None:
|
def test_mcpwm(dut: Dut) -> None:
|
||||||
dut.expect('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@@ -21,6 +21,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_rmt(dut: Dut) -> None:
|
def test_rmt(dut: Dut) -> None:
|
||||||
dut.expect('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# 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
|
||||||
import pytest
|
import pytest
|
||||||
from pytest_embedded import Dut
|
from pytest_embedded import Dut
|
||||||
@@ -14,6 +14,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_touch_sensor_v1(dut: Dut) -> None:
|
def test_touch_sensor_v1(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases(timeout=60)
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output(timeout=60)
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# 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
|
||||||
import pytest
|
import pytest
|
||||||
from pytest_embedded import Dut
|
from pytest_embedded import Dut
|
||||||
@@ -15,6 +15,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_touch_sensor_v2(dut: Dut) -> None:
|
def test_touch_sensor_v2(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases(timeout=120)
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output(timeout=120)
|
|
||||||
|
@@ -24,9 +24,7 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_twai_self(dut: Dut) -> None:
|
def test_twai_self(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases(group='twai-loop-back')
|
||||||
dut.write('[twai-loop-back]')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name='socket_can', scope='module')
|
@pytest.fixture(name='socket_can', scope='module')
|
||||||
|
@@ -18,9 +18,7 @@ from pytest_embedded import Dut
|
|||||||
'pm_enable'
|
'pm_enable'
|
||||||
], indirect=True)
|
], indirect=True)
|
||||||
def test_adc(dut: Dut) -> None:
|
def test_adc(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases(timeout=120)
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output(timeout=120)
|
|
||||||
|
|
||||||
|
|
||||||
# No PM test, as C2 doesn't support ADC continuous mode
|
# No PM test, as C2 doesn't support ADC continuous mode
|
||||||
@@ -36,6 +34,4 @@ def test_adc(dut: Dut) -> None:
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_adc_esp32c2_xtal_26mhz(dut: Dut) -> None:
|
def test_adc_esp32c2_xtal_26mhz(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases(timeout=120)
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output(timeout=120)
|
|
||||||
|
@@ -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"
|
|
||||||
|
@@ -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)
|
|
||||||
|
@@ -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
|
||||||
*/
|
*/
|
@@ -7,6 +7,6 @@ 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.expect_exact('Press ENTER to see the list of tests')
|
||||||
dut.write('*')
|
dut.write('![ignore]')
|
||||||
dut.expect_unity_test_output(timeout=5)
|
dut.expect_unity_test_output(timeout=120)
|
@@ -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)
|
|
||||||
|
@@ -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.)
|
@@ -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
|
||||||
*/
|
*/
|
@@ -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
|
||||||
*/
|
*/
|
@@ -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
|
||||||
*/
|
*/
|
@@ -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"
|
||||||
|
|
||||||
|
@@ -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
|
||||||
*/
|
*/
|
@@ -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"
|
||||||
|
@@ -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
|
||||||
*/
|
*/
|
@@ -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
|
||||||
*/
|
*/
|
@@ -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
|
||||||
*/
|
*/
|
@@ -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
|
||||||
*/
|
*/
|
@@ -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
|
||||||
*/
|
*/
|
Reference in New Issue
Block a user