pytest_gpio.py 481 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.supported_targets
  6. @pytest.mark.generic
  7. @pytest.mark.parametrize(
  8. 'config',
  9. [
  10. 'iram_safe',
  11. 'release',
  12. ],
  13. indirect=True,
  14. )
  15. def test_gpio(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=300)