esp-idf/components/espcoredump/test/test_espcoredump.sh

12 lines
686 B
Bash
Raw Normal View History

#!/usr/bin/env bash
{ coverage debug sys \
&& coverage erase \
&& 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 06:20:26 -05:00
&& diff expected_output output \
&& coverage run -a --source=corefile ../espcoredump.py --gdb-timeout-sec 5 info_corefile -m -t elf -c core.elf test.elf &> output2 \
&& diff expected_output output2 \
&& coverage run -a --source=corefile ./test_espcoredump.py \
&& coverage report ../corefile/elf.py ../corefile/gdb.py ../corefile/loader.py ../corefile/xtensa.py ../espcoredump.py \
; } || { echo 'The test for espcoredump has failed!'; exit 1; }