URL
https://opencores.org/ocsvn/s80186/s80186/trunk
[/] [s80186/] [trunk/] [scripts/] [ci/] [gcov-coverage] - Blame information for rev 2
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
2 |
jamieiles |
#!/bin/bash
|
2 |
|
|
|
3 |
|
|
# Copyright Jamie Iles, 2017
|
4 |
|
|
#
|
5 |
|
|
# This file is part of s80x86.
|
6 |
|
|
#
|
7 |
|
|
# s80x86 is free software: you can redistribute it and/or modify
|
8 |
|
|
# it under the terms of the GNU General Public License as published by
|
9 |
|
|
# the Free Software Foundation, either version 3 of the License, or
|
10 |
|
|
# (at your option) any later version.
|
11 |
|
|
#
|
12 |
|
|
# s80x86 is distributed in the hope that it will be useful,
|
13 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 |
|
|
# GNU General Public License for more details.
|
16 |
|
|
#
|
17 |
|
|
# You should have received a copy of the GNU General Public License
|
18 |
|
|
# along with s80x86. If not, see .
|
19 |
|
|
|
20 |
|
|
set -e
|
21 |
|
|
[ -d .git ] && git submodule update --init
|
22 |
|
|
[ -d _build/gcov-coverage ] || mkdir -p _build/gcov-coverage
|
23 |
|
|
[ -d _build/.ccache ] || mkdir -p _build/.ccache
|
24 |
|
|
DOCKER_NONINTERACTIVE=1 ./docker/s80x86-build -e -c 'cd _build/gcov-coverage; \
|
25 |
|
|
cmake -GNinja ../.. -DCMAKE_BUILD_TYPE=Coverage; \
|
26 |
|
|
ninja; \
|
27 |
|
|
find . -name "*.mcov" -delete; \
|
28 |
|
|
ctest --output-on-failure -R "sim-unittest|rtl-unittest"; \
|
29 |
|
|
../../scripts/gcovr --delete --output=coverage.xml \
|
30 |
|
|
--exclude="_build/*" \
|
31 |
|
|
--exclude=".*googletest.*" \
|
32 |
|
|
--exclude=".*Simulator.*" \
|
33 |
|
|
--exclude=".*SPI.*" \
|
34 |
|
|
--exclude=".*UART.*" \
|
35 |
|
|
--exclude="python.*" \
|
36 |
|
|
--exclude="tests.*" \
|
37 |
|
|
--root=../.. --xml-pretty --exclude-unreachable-branches .; \
|
38 |
|
|
verilator_coverage -write rtl-merged-coverage.dat tests/rtl/coverage/*.dat; \
|
39 |
|
|
../../scripts/verilator-cobertura --output=coverage-rtl-unittest.xml --source-root=../.. ./rtl-merged-coverage.dat; \
|
40 |
|
|
../../scripts/microcode_coverage rtl/microcode/microcode.bin . ./rtl/microcode --xml --output coverage-microcode.xml; \
|
41 |
|
|
rm ../../*.gcov -f'
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.