example_test.py 964 B

1234567891011121314151617181920212223
  1. from __future__ import unicode_literals
  2. import re
  3. import ttfw_idf
  4. @ttfw_idf.idf_example_test(env_tag='Example_GENERIC', target=['esp32', 'esp32c3'])
  5. def test_examples_cpp_pthread(env, extra_data):
  6. dut = env.get_dut('cpp_pthread', 'examples/cxx/pthread')
  7. dut.start_app()
  8. dut.expect_all(re.compile(r'pthread: This thread \(with the default name\) may run on any core.'
  9. r'Core id: [01], prio: 5, minimum free stack: \d+ bytes.'),
  10. re.compile(r'Thread [12]: Core id: [01], prio: 5, minimum free stack: \d+ bytes.'),
  11. re.compile(r'Thread [12]: This is the INHERITING thread with the same parameters as our parent, '
  12. r'including name. Core id: [01], prio: 5, minimum free stack: \d+ bytes.'),
  13. re.compile(r'Thread [12]: Core id: [01], prio: 5, minimum free stack: \d+ bytes'))
  14. if __name__ == '__main__':
  15. test_examples_cpp_pthread()