pytest_cmake_utilities.py 583 B

1234567891011121314151617181920
  1. '''
  2. Steps to run these cases:
  3. - Build
  4. - . ${IDF_PATH}/export.sh
  5. - pip install idf_build_apps
  6. - python tools/build_apps.py tools/cmake_utilities/test_apps -t esp32s2
  7. - Test
  8. - pip install -r tools/requirements/requirement.pytest.txt
  9. - pytest tools/cmake_utilities/test_apps --target esp32s2
  10. '''
  11. import pytest
  12. from pytest_embedded import Dut
  13. @pytest.mark.target('esp32s3')
  14. @pytest.mark.env('generic')
  15. def test_cmake_utilities(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 = 1000)