mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-10 18:06:29 +00:00
test: format all test scripts
This commit is contained in:
@@ -1,31 +1,39 @@
|
||||
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
import pytest
|
||||
from pytest_embedded import Dut
|
||||
from pytest_embedded_idf.utils import idf_parametrize
|
||||
|
||||
|
||||
@pytest.mark.generic
|
||||
@pytest.mark.parametrize('config', [
|
||||
pytest.param('flash_80m_qio', marks=[pytest.mark.supported_targets]),
|
||||
pytest.param('no_vfs', marks=[pytest.mark.supported_targets]),
|
||||
pytest.param('no_vfs_partial', marks=[pytest.mark.supported_targets]),
|
||||
pytest.param('opt_o0', marks=[pytest.mark.supported_targets]),
|
||||
pytest.param('opt_o2', marks=[pytest.mark.supported_targets]),
|
||||
pytest.param('stack_check_verbose_log', marks=[pytest.mark.supported_targets]),
|
||||
pytest.param('sram1_iram', marks=[pytest.mark.esp32]),
|
||||
pytest.param('main_task_cpu1', marks=[pytest.mark.esp32, pytest.mark.esp32s3]),
|
||||
], indirect=True)
|
||||
@idf_parametrize(
|
||||
'config,target',
|
||||
[
|
||||
('flash_80m_qio', 'supported_targets'),
|
||||
('no_vfs', 'supported_targets'),
|
||||
('no_vfs_partial', 'supported_targets'),
|
||||
('opt_o0', 'supported_targets'),
|
||||
('opt_o2', 'supported_targets'),
|
||||
('stack_check_verbose_log', 'supported_targets'),
|
||||
('sram1_iram', 'esp32'),
|
||||
('main_task_cpu1', 'esp32'),
|
||||
('main_task_cpu1', 'esp32s3'),
|
||||
],
|
||||
indirect=['config', 'target'],
|
||||
)
|
||||
def test_sys_startup(dut: Dut) -> None:
|
||||
dut.expect_exact('app_main running')
|
||||
|
||||
|
||||
@pytest.mark.esp32
|
||||
@pytest.mark.esp32s3
|
||||
@pytest.mark.generic
|
||||
@pytest.mark.parametrize('config', [
|
||||
'single_core_variant',
|
||||
], indirect=True)
|
||||
@pytest.mark.parametrize(
|
||||
'config',
|
||||
[
|
||||
'single_core_variant',
|
||||
],
|
||||
indirect=True,
|
||||
)
|
||||
@idf_parametrize('target', ['esp32', 'esp32s3'], indirect=['target'])
|
||||
def test_sys_startup_single_core_variant(dut: Dut) -> None:
|
||||
dut.expect('Running on single core variant of a chip, but app is built with multi-core support.')
|
||||
dut.expect(r'abort\(\) was called at PC [0-9xa-f]+ on core 0')
|
||||
|
||||
Reference in New Issue
Block a user