mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-25 09:42:35 +00:00
system: add test for simulating single core esp32 startup
This commit is contained in:
@@ -2,9 +2,11 @@
|
||||
|
||||
import glob
|
||||
import os
|
||||
import re
|
||||
|
||||
import ttfw_idf
|
||||
from tiny_test_fw import Utility
|
||||
from ttfw_idf.IDFDUT import ESP32DUT
|
||||
|
||||
|
||||
@ttfw_idf.idf_custom_test(env_tag='Example_GENERIC', group='test-apps')
|
||||
@@ -15,7 +17,14 @@ def test_startup(env, extra_data):
|
||||
Utility.console_log("Checking config \"{}\"... ".format(name), end='')
|
||||
dut = env.get_dut('startup', 'tools/test_apps/system/startup', app_config_name=name)
|
||||
dut.start_app()
|
||||
dut.expect('app_main running')
|
||||
|
||||
if (name == 'single_core_variant' and isinstance(dut, ESP32DUT)):
|
||||
dut.allow_dut_exception = True
|
||||
dut.expect('Running on single core variant of a chip, but app is built with multi-core support.')
|
||||
dut.expect(re.compile(r'abort\(\) was called at PC [0-9xa-f]+ on core 0'))
|
||||
else:
|
||||
dut.expect('app_main running')
|
||||
|
||||
env.close_dut(dut.name)
|
||||
Utility.console_log('done')
|
||||
|
||||
|
Reference in New Issue
Block a user