2020-04-03 01:10:02 +02:00
|
|
|
#!/usr/bin/env bash
|
2018-09-03 13:48:32 +02:00
|
|
|
|
|
|
|
{ coverage debug sys \
|
|
|
|
&& coverage erase \
|
2021-01-19 13:39:30 +08:00
|
|
|
&& coverage run -a --source=corefile ../espcoredump.py --gdb-timeout-sec 5 info_corefile -m -t b64 -c coredump.b64 -s core.elf test.elf &> output \
|
2019-11-05 12:20:26 +01:00
|
|
|
&& diff expected_output output \
|
2021-01-19 13:39:30 +08:00
|
|
|
&& coverage run -a --source=corefile ../espcoredump.py --gdb-timeout-sec 5 info_corefile -m -t elf -c core.elf test.elf &> output2 \
|
2020-05-20 20:04:14 +02:00
|
|
|
&& diff expected_output output2 \
|
2021-01-19 13:39:30 +08:00
|
|
|
&& coverage run -a --source=corefile ./test_espcoredump.py \
|
|
|
|
&& coverage report ../corefile/elf.py ../corefile/gdb.py ../corefile/loader.py ../corefile/xtensa.py ../espcoredump.py \
|
2018-09-03 13:48:32 +02:00
|
|
|
; } || { echo 'The test for espcoredump has failed!'; exit 1; }
|