pytest_sdm.py 515 B

123456789101112131415161718192021222324
  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.esp32
  6. @pytest.mark.esp32s2
  7. @pytest.mark.esp32s3
  8. @pytest.mark.esp32c3
  9. @pytest.mark.generic
  10. @pytest.mark.parametrize(
  11. 'config',
  12. [
  13. 'iram_safe',
  14. 'release',
  15. ],
  16. indirect=True,
  17. )
  18. def test_sdm(dut: Dut) -> None:
  19. dut.expect_exact('Press ENTER to see the list of tests')
  20. dut.write('*')
  21. dut.expect_unity_test_output()