Last change
on this file since 917 was
917,
checked in by Dag-Erling Smørgrav, 4 years ago
|
Add a pair of scripts to facilitate running Bullseye Coverage and Coverity
Scan on the codebase.
|
File size:
575 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | usage() { |
---|
4 | echo "usage: ${0##*/} [-jN]" >&2 |
---|
5 | exit 1 |
---|
6 | } |
---|
7 | |
---|
8 | while getopts "j:" opt ; do |
---|
9 | case $opt in |
---|
10 | j) |
---|
11 | j="-j$OPTARG" |
---|
12 | ;; |
---|
13 | *) |
---|
14 | usage |
---|
15 | ;; |
---|
16 | esac |
---|
17 | done |
---|
18 | |
---|
19 | if ! which -s cov01 covhtml ; then |
---|
20 | echo "coverage tools not found" >&2 |
---|
21 | exit 1 |
---|
22 | fi |
---|
23 | srcdir="@abs_top_srcdir@" |
---|
24 | htmldir="${srcdir}/covhtml" |
---|
25 | export COVFILE="${srcdir}/test.cov" |
---|
26 | gmake -C "${srcdir}" clean |
---|
27 | find "${srcdir}" -type f -name "${COVFILE##*/}" -delete |
---|
28 | rm -rf "${htmldir}" |
---|
29 | cov01 -1 |
---|
30 | gmake -C "${srcdir}" $j check || exit 1 |
---|
31 | covhtml -d "${srcdir}" -f "${COVFILE}" "${htmldir}" |
---|
32 | cov01 -0 |
---|
33 | gmake -C "${srcdir}" clean |
---|
Note: See
TracBrowser
for help on using the repository browser.