2020-04-02 19:10:02 -04:00
|
|
|
#!/usr/bin/env bash
|
2018-12-12 12:38:23 -05:00
|
|
|
|
2022-01-03 20:35:08 -05:00
|
|
|
{ python -m coverage debug sys \
|
|
|
|
&& python -m coverage erase &> output \
|
|
|
|
&& python -m 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 06:20:26 -05:00
|
|
|
&& diff output expected_output \
|
2022-01-03 20:35:08 -05:00
|
|
|
&& python -m coverage report \
|
2018-12-12 12:38:23 -05:00
|
|
|
; } || { echo 'The test for sysviewtrace_proc has failed. Please examine the artifacts.' ; exit 1; }
|
2019-11-20 06:47:07 -05:00
|
|
|
|
2022-01-03 20:35:08 -05:00
|
|
|
{ python -m coverage debug sys \
|
|
|
|
&& python -m coverage erase &> output.json \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -j -b test.elf cpu0.svdat cpu1.svdat &>> output.json \
|
2019-11-20 06:47:07 -05:00
|
|
|
&& diff output.json expected_output.json \
|
2022-01-03 20:35:08 -05:00
|
|
|
&& python -m coverage report \
|
2019-11-20 06:47:07 -05:00
|
|
|
; } || { echo 'The test for sysviewtrace_proc JSON functionality has failed. Please examine the artifacts.' ; exit 1; }
|
|
|
|
|
2022-01-03 20:35:08 -05:00
|
|
|
{ python -m coverage debug sys \
|
|
|
|
&& python -m coverage erase &> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -d -p -b sysview_tracing_heap_log.elf heap_log_mcore.svdat &>> output \
|
2020-01-10 15:21:37 -05:00
|
|
|
&& diff output expected_output_mcore \
|
2022-01-03 20:35:08 -05:00
|
|
|
&& python -m coverage report \
|
2020-01-10 15:21:37 -05:00
|
|
|
; } || { echo 'The test for mcore sysviewtrace_proc functionality has failed. Please examine the artifacts.' ; exit 1; }
|
|
|
|
|
2022-01-03 20:35:08 -05:00
|
|
|
{ python -m coverage debug sys \
|
|
|
|
&& python -m coverage erase &> output.json \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -j -b sysview_tracing_heap_log.elf heap_log_mcore.svdat &>> output.json \
|
2020-01-10 15:21:37 -05:00
|
|
|
&& diff output.json expected_output_mcore.json \
|
2022-01-03 20:35:08 -05:00
|
|
|
&& python -m coverage report \
|
2020-01-10 15:21:37 -05:00
|
|
|
; } || { echo 'The test for mcore sysviewtrace_proc JSON functionality has failed. Please examine the artifacts.' ; exit 1; }
|