1# type: ignore
2from __future__ import print_function
3
4import ttfw_idf
5
6
7@ttfw_idf.idf_example_test(env_tag='Example_GENERIC', target=['esp32', 'esp32c3'])
8def test_examples_system_console_advanced(env, _):
9    dut = env.get_dut('console_example', 'examples/system/console/advanced', app_config_name='history')
10    print('Using binary path: {}'.format(dut.app.binary_path))
11    dut.start_app()
12    dut.expect('Command history enabled')
13    env.close_dut(dut.name)
14
15    dut = env.get_dut('console_example', 'examples/system/console/advanced', app_config_name='nohistory')
16    print('Using binary path: {}'.format(dut.app.binary_path))
17    dut.start_app()
18    dut.expect('Command history disabled')
19
20
21if __name__ == '__main__':
22    test_examples_system_console_advanced()
23