2020-07-21 08:00:05 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2021-01-26 02:49:01 +00:00
|
|
|
from __future__ import division, print_function, unicode_literals
|
2020-07-21 08:00:05 +00:00
|
|
|
|
|
|
|
import ttfw_idf
|
|
|
|
|
|
|
|
|
2021-01-26 02:49:01 +00:00
|
|
|
@ttfw_idf.idf_example_test(env_tag='Example_TWAI1', target=['esp32', 'esp32s2'], ci_target=['esp32'])
|
2020-07-21 08:00:05 +00:00
|
|
|
def test_examples_gpio(env, extra_data):
|
2021-01-26 02:49:01 +00:00
|
|
|
app_name = 'gpio'
|
|
|
|
dut = env.get_dut(app_name, 'examples/peripherals/gpio/generic_gpio')
|
2020-07-21 08:00:05 +00:00
|
|
|
dut.start_app()
|
|
|
|
res = dut.expect(ttfw_idf.MINIMUM_FREE_HEAP_SIZE_RE)
|
|
|
|
if not res:
|
|
|
|
raise ValueError('Maximum heap size info not found')
|
|
|
|
ttfw_idf.print_heap_size(app_name, dut.app.config_name, dut.TARGET, res[0])
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
test_examples_gpio()
|