mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
30 lines
766 B
Python
30 lines
766 B
Python
|
from __future__ import unicode_literals
|
||
|
|
||
|
import os
|
||
|
|
||
|
import ttfw_idf
|
||
|
from tiny_test_fw import Env, Utility
|
||
|
|
||
|
|
||
|
@ttfw_idf.idf_example_test(env_tag='Example_GENERIC')
|
||
|
def test_examples_eventfd(env, extra_data):
|
||
|
# type: (Env, None) -> None
|
||
|
|
||
|
dut = env.get_dut('eventfd', 'examples/system/eventfd')
|
||
|
dut.start_app()
|
||
|
|
||
|
dut.expect('cpu_start: Starting scheduler', timeout=30)
|
||
|
|
||
|
exp_list = [
|
||
|
'eventfd_example: Select timeouted for 4 times',
|
||
|
'eventfd_example: Timer triggerred for 4 times',
|
||
|
'eventfd_example: Progress triggerred for 3 times',
|
||
|
]
|
||
|
|
||
|
Utility.console_log('Expecting:{}{}'.format(os.linesep, os.linesep.join(exp_list)))
|
||
|
dut.expect_all(*exp_list, timeout=60)
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
test_examples_eventfd()
|