summaryrefslogtreecommitdiff
path: root/sal/qa/helper/gcov/build_coverage
blob: 8948789a87e7f994bf276dbdc14e192e02f8f742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

# this is a helper, to build sal with the right compiler parameters
# IMPORTANT, this works only within Linux

if ( `uname` == "Linux" ) then
	echo "running on Linux Intel, ok."

    build killobj

    # setenv OLDCFLAGS $ENVCFLAGS 

    setenv ENVCFLAGS "-fprofile-arcs -ftest-coverage"

    build

    # setenv ENVCFLAGS $OLDCFLAGS

else

    echo "Sorry, gcov works only within Linux environment."

endif