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

10 lines
378 B
Bash
Raw Normal View History

#! /bin/bash
{ coverage debug sys \
&& coverage erase \
&& coverage run -a --source=espcoredump ../espcoredump.py info_corefile -m -t b64 -c coredump.b64 test.elf &> output \
2019-11-05 06:20:26 -05:00
&& diff expected_output output \
&& coverage run -a --source=espcoredump ./test_espcoredump.py \
&& coverage report \
; } || { echo 'The test for espcoredump has failed!'; exit 1; }