example_test.py 614 B

123456789101112131415161718
  1. from __future__ import print_function
  2. import ttfw_idf
  3. @ttfw_idf.idf_example_test(env_tag='Example_GENERIC', target=['esp32', 'esp32s2', 'esp32c3'])
  4. def test_custom_bootloader_hooks_example(env, _): # type: ignore
  5. # Test with default build configurations
  6. dut = env.get_dut('main', 'examples/custom_bootloader/bootloader_hooks')
  7. dut.start_app()
  8. # Expect to read both hooks messages
  9. dut.expect('This hook is called BEFORE bootloader initialization')
  10. dut.expect('This hook is called AFTER bootloader initialization')
  11. if __name__ == '__main__':
  12. test_custom_bootloader_hooks_example()