2018-12-12 17:38:23 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
{ coverage debug sys \
|
|
|
|
&& coverage erase &> output \
|
2019-11-20 11:47:07 +00:00
|
|
|
&& coverage run -a $IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -d -p -b test.elf cpu0.svdat cpu1.svdat &>> output \
|
2019-11-05 11:20:26 +00:00
|
|
|
&& diff output expected_output \
|
2018-12-12 17:38:23 +00:00
|
|
|
&& coverage report \
|
|
|
|
; } || { echo 'The test for sysviewtrace_proc has failed. Please examine the artifacts.' ; exit 1; }
|
2019-11-20 11:47:07 +00:00
|
|
|
|
|
|
|
{ coverage debug sys \
|
|
|
|
&& coverage erase &> output.json \
|
|
|
|
&& coverage run -a $IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -j -b test.elf cpu0.svdat cpu1.svdat &>> output.json \
|
|
|
|
&& diff output.json expected_output.json \
|
|
|
|
&& coverage report \
|
|
|
|
; } || { echo 'The test for sysviewtrace_proc JSON functionality has failed. Please examine the artifacts.' ; exit 1; }
|
|
|
|
|