app_test.py 431 B

123456789101112131415161718
  1. #!/usr/bin/env python
  2. import tiny_test_fw
  3. import ttfw_idf
  4. @ttfw_idf.idf_custom_test(env_tag='Example_GENERIC')
  5. def test_startup(env, _): # type: (tiny_test_fw.Env.Env, None) -> None
  6. # Only test for master usage.
  7. dut = env.get_dut('i2c_wifi', 'tools/test_apps/peripherals/i2c_wifi')
  8. dut.start_app()
  9. dut.expect('I2C-WIFI test success')
  10. env.close_dut(dut.name)
  11. if __name__ == '__main__':
  12. test_startup()