1#!/usr/bin/env python 2 3from __future__ import division, print_function, unicode_literals 4 5import ttfw_idf 6 7 8@ttfw_idf.idf_example_test(env_tag='Example_TWAI1', target=['esp32', 'esp32s2'], ci_target=['esp32']) 9def test_examples_gpio(env, extra_data): 10 app_name = 'gpio' 11 dut = env.get_dut(app_name, 'examples/peripherals/gpio/generic_gpio') 12 dut.start_app() 13 res = dut.expect(ttfw_idf.MINIMUM_FREE_HEAP_SIZE_RE) 14 if not res: 15 raise ValueError('Maximum heap size info not found') 16 ttfw_idf.print_heap_size(app_name, dut.app.config_name, dut.TARGET, res[0]) 17 18 19if __name__ == '__main__': 20 test_examples_gpio() 21