2021-07-14 23:37:11 -04:00
|
|
|
# type: ignore
|
2019-10-18 13:26:57 -04:00
|
|
|
from __future__ import print_function
|
|
|
|
|
2019-11-26 22:58:07 -05:00
|
|
|
import ttfw_idf
|
2019-10-18 13:26:57 -04:00
|
|
|
|
|
|
|
|
2021-03-12 01:05:17 -05:00
|
|
|
@ttfw_idf.idf_example_test(env_tag='Example_GENERIC', target=['esp32', 'esp32c3'])
|
2021-07-14 23:37:11 -04:00
|
|
|
def test_examples_system_console_advanced(env, _):
|
|
|
|
dut = env.get_dut('console_example', 'examples/system/console/advanced', app_config_name='history')
|
2021-01-25 21:49:01 -05:00
|
|
|
print('Using binary path: {}'.format(dut.app.binary_path))
|
2019-10-18 13:26:57 -04:00
|
|
|
dut.start_app()
|
2021-01-25 21:49:01 -05:00
|
|
|
dut.expect('Command history enabled')
|
2019-10-18 13:26:57 -04:00
|
|
|
env.close_dut(dut.name)
|
|
|
|
|
2021-07-14 23:37:11 -04:00
|
|
|
dut = env.get_dut('console_example', 'examples/system/console/advanced', app_config_name='nohistory')
|
2021-01-25 21:49:01 -05:00
|
|
|
print('Using binary path: {}'.format(dut.app.binary_path))
|
2019-10-18 13:26:57 -04:00
|
|
|
dut.start_app()
|
2021-01-25 21:49:01 -05:00
|
|
|
dut.expect('Command history disabled')
|
2019-10-18 13:26:57 -04:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2021-07-14 23:37:11 -04:00
|
|
|
test_examples_system_console_advanced()
|