esp-idf/tools/esp_app_trace/test/sysview/test.sh
Anton Maklakov 5a203a5371 sysview: fix test case for compatibility with new binutils
Since the ‘addr2line’ works correctly in the new version of binutils,
line numbers are different.
2019-04-10 13:48:57 +08:00

16 lines
563 B
Bash
Executable File

#! /bin/bash
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
{ 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 \
&& diff output ${EXPECTED_OUTPUT} \
&& coverage report \
; } || { echo 'The test for sysviewtrace_proc has failed. Please examine the artifacts.' ; exit 1; }