1#!/usr/bin/env bash
2
3{ coverage debug sys \
4    && coverage erase &> output \
5    && coverage run -a $IDF_PATH/tools/esp_app_trace/logtrace_proc.py adc_log.trc test.elf &>> output \
6    && diff output expected_output \
7    && coverage report \
8; } || { echo 'The test for logtrace_proc has failed. Please examine the artifacts.' ; exit 1; }
9