File: testcoverage.sh

package info (click to toggle)
libjson-rpc-cpp 0.7.0-2.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,124 kB
  • sloc: cpp: 6,491; xml: 202; sh: 65; makefile: 13
file content (16 lines) | stat: -rwxr-xr-x 319 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
cd ../build

echo "Building debug build"
cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j4

echo "Executing Test Suite"
bin/unit_testsuite

echo "Generate HTML report"
mkdir -p reports
gcovr -r .. -d -e "build" -e "src/test" --html --html-details -o reports/coverage.html
xdg-open reports/coverage.html
cd ../dev