test.sh 746 B

12345678910111213141516
  1. #! /bin/bash
  2. { coverage debug sys \
  3. && coverage erase &> output \
  4. && coverage run -a $IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -d -p -b test.elf cpu0.svdat cpu1.svdat &>> output \
  5. && diff output expected_output \
  6. && coverage report \
  7. ; } || { echo 'The test for sysviewtrace_proc has failed. Please examine the artifacts.' ; exit 1; }
  8. { coverage debug sys \
  9. && coverage erase &> output.json \
  10. && coverage run -a $IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -j -b test.elf cpu0.svdat cpu1.svdat &>> output.json \
  11. && diff output.json expected_output.json \
  12. && coverage report \
  13. ; } || { echo 'The test for sysviewtrace_proc JSON functionality has failed. Please examine the artifacts.' ; exit 1; }