2019-10-20 14:55:11 -04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import glob
|
2021-01-25 21:49:01 -05:00
|
|
|
import os
|
|
|
|
|
2020-01-27 06:12:49 -05:00
|
|
|
import ttfw_idf
|
|
|
|
from tiny_test_fw import Utility
|
2019-10-20 14:55:11 -04:00
|
|
|
|
|
|
|
|
2021-01-25 21:49:01 -05:00
|
|
|
@ttfw_idf.idf_custom_test(env_tag='Example_GENERIC', group='test-apps')
|
2019-10-20 14:55:11 -04:00
|
|
|
def test_startup(env, extra_data):
|
2021-01-25 21:49:01 -05:00
|
|
|
config_files = glob.glob(os.path.join(os.path.dirname(__file__), 'sdkconfig.ci.*'))
|
|
|
|
config_names = [os.path.basename(s).replace('sdkconfig.ci.', '') for s in config_files]
|
2019-10-20 14:55:11 -04:00
|
|
|
for name in config_names:
|
2021-01-25 21:49:01 -05:00
|
|
|
Utility.console_log("Checking config \"{}\"... ".format(name), end='')
|
|
|
|
dut = env.get_dut('startup', 'tools/test_apps/system/startup', app_config_name=name)
|
2019-10-20 14:55:11 -04:00
|
|
|
dut.start_app()
|
2021-01-25 21:49:01 -05:00
|
|
|
dut.expect('app_main running')
|
2019-10-20 14:55:11 -04:00
|
|
|
env.close_dut(dut.name)
|
2021-01-25 21:49:01 -05:00
|
|
|
Utility.console_log('done')
|
2019-10-20 14:55:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
test_startup()
|