Paul Sokolovsky | 126be88 | 2023-02-09 22:50:40 +0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -xe |
| 4 | |
| 5 | if [ -f "${WORKSPACE}/lava-raw.log" ]; then |
| 6 | |
| 7 | # Split the UART messages to the corresponding log files |
| 8 | ${WORKSPACE}/tf-a-job-configs/tf-a-builder/log-splitter.py "${WORKSPACE}/lava-raw.log" |
| 9 | |
| 10 | # Take possible code coverage trace data from the LAVA log |
| 11 | ${WORKSPACE}/tf-a-job-configs/tf-a-builder/feedback-trace-splitter.sh \ |
| 12 | ${WORKSPACE}/trusted-firmware-a \ |
| 13 | ${WORKSPACE} \ |
| 14 | ${WORKSPACE}/artefacts-lava/ \ |
| 15 | ${TF_GERRIT_REFSPEC} |
| 16 | |
| 17 | # Generate Code Coverate Report in case there are traces available |
| 18 | if find covtrace-*.log; then |
| 19 | if [ ! -d "${WORKSPACE}/qa-tools" ]; then |
Paul Sokolovsky | fc8db3e | 2023-02-10 23:39:30 +0700 | [diff] [blame] | 20 | git clone ${QA_TOOLS_REPO} -b ${QA_TOOLS_BRANCH:-master} ${WORKSPACE}/qa-tools |
Paul Sokolovsky | 126be88 | 2023-02-09 22:50:40 +0700 | [diff] [blame] | 21 | fi |
| 22 | cd ${WORKSPACE}/qa-tools/coverage-tool/coverage-reporting |
| 23 | ./branch_coverage.sh \ |
| 24 | --config ${WORKSPACE}/config_file.json \ |
| 25 | --workspace ${WORKSPACE}/trusted-firmware-a \ |
| 26 | --outdir ${WORKSPACE}/trace_report |
| 27 | find ${WORKSPACE}/trace_report |
| 28 | fi |
| 29 | |
| 30 | fi |