test.sh 1.5 KB

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env 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; }
  14. { coverage debug sys \
  15. && coverage erase &> output \
  16. && 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 \
  17. && diff output expected_output_mcore \
  18. && coverage report \
  19. ; } || { echo 'The test for mcore sysviewtrace_proc functionality has failed. Please examine the artifacts.' ; exit 1; }
  20. { coverage debug sys \
  21. && coverage erase &> output.json \
  22. && 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 \
  23. && diff output.json expected_output_mcore.json \
  24. && coverage report \
  25. ; } || { echo 'The test for mcore sysviewtrace_proc JSON functionality has failed. Please examine the artifacts.' ; exit 1; }