mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
test_apps: add coredump tests for int_wdt
This commit is contained in:
@@ -128,6 +128,22 @@ def test_coredump_uart_abort(env, extra_data):
|
||||
# TODO: check the contents of core dump output
|
||||
|
||||
|
||||
@panic_test()
|
||||
def test_coredump_uart_int_wdt(env, extra_data):
|
||||
with get_dut(env, "coredump_uart", "test_int_wdt") as dut:
|
||||
dut.expect_gme("Interrupt wdt timeout on CPU0")
|
||||
dut.expect_reg_dump(0)
|
||||
dut.expect("Backtrace:")
|
||||
dut.expect_none("CORRUPTED", "Guru Meditation")
|
||||
dut.expect_reg_dump(1)
|
||||
dut.expect("Backtrace:")
|
||||
dut.expect_elf_sha256()
|
||||
dut.expect_none("CORRUPTED", "Guru Meditation")
|
||||
dut.expect("Rebooting...")
|
||||
dut.process_coredump_uart()
|
||||
# TODO: check the contents of core dump output
|
||||
|
||||
|
||||
@panic_test()
|
||||
def test_coredump_flash_abort(env, extra_data):
|
||||
with get_dut(env, "coredump_flash", "test_abort") as dut:
|
||||
@@ -140,5 +156,21 @@ def test_coredump_flash_abort(env, extra_data):
|
||||
# TODO: check the contents of core dump output
|
||||
|
||||
|
||||
@panic_test()
|
||||
def test_coredump_flash_int_wdt(env, extra_data):
|
||||
with get_dut(env, "coredump_flash", "test_int_wdt") as dut:
|
||||
dut.expect_gme("Interrupt wdt timeout on CPU0")
|
||||
dut.expect_reg_dump(0)
|
||||
dut.expect("Backtrace:")
|
||||
dut.expect_none("CORRUPTED", "Guru Meditation")
|
||||
dut.expect_reg_dump(1)
|
||||
dut.expect("Backtrace:")
|
||||
dut.expect_elf_sha256()
|
||||
dut.expect_none("CORRUPTED", "Guru Meditation")
|
||||
dut.expect("Rebooting...")
|
||||
dut.process_coredump_flash()
|
||||
# TODO: check the contents of core dump output
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
run_all(__file__)
|
||||
|
Reference in New Issue
Block a user