pytest_startup.py 844 B

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