pytest_startup.py 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
  2. # SPDX-License-Identifier: CC0-1.0
  3. import pytest
  4. from pytest_embedded import Dut
  5. @pytest.mark.generic
  6. @pytest.mark.parametrize('config', [
  7. pytest.param('flash_80m_qio', marks=[pytest.mark.supported_targets]),
  8. pytest.param('no_vfs', marks=[pytest.mark.supported_targets]),
  9. pytest.param('no_vfs_partial', marks=[pytest.mark.supported_targets]),
  10. pytest.param('opt_o0', marks=[pytest.mark.supported_targets]),
  11. pytest.param('opt_o2', marks=[pytest.mark.supported_targets]),
  12. pytest.param('stack_check_verbose_log', marks=[pytest.mark.supported_targets]),
  13. pytest.param('sram1_iram', marks=[pytest.mark.esp32]),
  14. pytest.param('main_task_cpu1', marks=[pytest.mark.esp32, pytest.mark.esp32s3]),
  15. ], indirect=True)
  16. def test_sys_startup(dut: Dut) -> None:
  17. dut.expect_exact('app_main running')
  18. @pytest.mark.esp32
  19. @pytest.mark.esp32s3
  20. @pytest.mark.generic
  21. @pytest.mark.parametrize('config', [
  22. 'single_core_variant',
  23. ], indirect=True)
  24. def test_sys_startup_single_core_variant(dut: Dut) -> None:
  25. dut.expect('Running on single core variant of a chip, but app is built with multi-core support.')
  26. dut.expect(r'abort\(\) was called at PC [0-9xa-f]+ on core 0')