File: coverage.sh

package info (click to toggle)
ustr 1.0.4-6.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,676 kB
  • sloc: ansic: 19,041; makefile: 935; perl: 779; sh: 686; xml: 97
file content (15 lines) | stat: -rwxr-xr-x 324 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh -e

if false; then
 echo "Not reached."
elif [ -f ./Makefile ]; then
	doln=false
else
  echo "Not in right place, goto the root."
  exit 1;
fi

make clean
make  CFLAGS="-g -fprofile-arcs -ftest-coverage -O0" \
     LDFLAGS="-g -fprofile-arcs -ftest-coverage -O0" check-lcov \
     -j $(getconf _NPROCESSORS_ONLN)