diff options
Diffstat (limited to 'sal/qa/helper/gcov/build_coverage')
-rwxr-xr-x | sal/qa/helper/gcov/build_coverage | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sal/qa/helper/gcov/build_coverage b/sal/qa/helper/gcov/build_coverage new file mode 100755 index 000000000000..8948789a87e7 --- /dev/null +++ b/sal/qa/helper/gcov/build_coverage @@ -0,0 +1,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 + |