mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
i2c_app_test: Add i2c work together with wifi test
This commit is contained in:
18
tools/test_apps/peripherals/i2c_wifi/app_test.py
Normal file
18
tools/test_apps/peripherals/i2c_wifi/app_test.py
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python
|
||||
import tiny_test_fw
|
||||
import ttfw_idf
|
||||
|
||||
|
||||
@ttfw_idf.idf_custom_test(env_tag='Example_GENERIC')
|
||||
def test_startup(env, _): # type: (tiny_test_fw.Env.Env, None) -> None
|
||||
# Only test for master usage.
|
||||
dut = env.get_dut('i2c_wifi', 'tools/test_apps/peripherals/i2c_wifi')
|
||||
dut.start_app()
|
||||
|
||||
dut.expect('I2C-WIFI test success')
|
||||
|
||||
env.close_dut(dut.name)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_startup()
|
Reference in New Issue
Block a user