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