pytest_adc.py 525 B

123456789101112131415161718192021
  1. # SPDX-FileCopyrightText: 2021-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.esp32c3
  8. @pytest.mark.esp32s3
  9. @pytest.mark.esp32c2
  10. @pytest.mark.generic
  11. @pytest.mark.parametrize('config', [
  12. 'iram_safe',
  13. 'release',
  14. ], indirect=True)
  15. def test_adc(dut: Dut) -> None:
  16. dut.expect_exact('Press ENTER to see the list of tests')
  17. dut.write('*')
  18. dut.expect_unity_test_output(timeout=120)