mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
5a203a5371
Since the ‘addr2line’ works correctly in the new version of binutils, line numbers are different.
16 lines
563 B
Bash
Executable File
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; }
|