mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
8efb2bb1ed
Add support for running example_GENERIC tests for C3 on label. Fix examples that fail.
21 lines
663 B
Python
21 lines
663 B
Python
#!/usr/bin/env python
|
|
|
|
from __future__ import division, print_function, unicode_literals
|
|
|
|
import ttfw_idf
|
|
|
|
|
|
@ttfw_idf.idf_example_test(env_tag='Example_GENERIC', target=['esp32', 'esp32s2', 'esp32c3'], ci_target=['esp32'])
|
|
def test_examples_hello_world(env, extra_data):
|
|
app_name = 'hello_world'
|
|
dut = env.get_dut(app_name, 'examples/get-started/hello_world')
|
|
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_hello_world()
|