2018-12-12 12:38:23 -05:00
|
|
|
#! /bin/bash
|
|
|
|
|
2019-04-09 01:26:59 -04:00
|
|
|
if [ "$(xtensa-esp32-elf-gcc -dumpversion)" = "5.2.0" ]; then
|
|
|
|
EXPECTED_OUTPUT="expected_output"
|
|
|
|
else
|
|
|
|
# GCC_NOT_5_2_0 just a hint to remove later
|
|
|
|
EXPECTED_OUTPUT="expected_output_new_CT"
|
|
|
|
fi
|
|
|
|
|
2018-12-12 12:38:23 -05:00
|
|
|
{ coverage debug sys \
|
|
|
|
&& coverage erase &> output \
|
|
|
|
&& coverage run -a $IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -d -p cpu0.svdat cpu1.svdat test.elf &>> output \
|
2019-04-09 01:26:59 -04:00
|
|
|
&& diff output ${EXPECTED_OUTPUT} \
|
2018-12-12 12:38:23 -05:00
|
|
|
&& coverage report \
|
|
|
|
; } || { echo 'The test for sysviewtrace_proc has failed. Please examine the artifacts.' ; exit 1; }
|