diff options
author | Mike McGreevy <mamcgree@hdfgroup.org> | 2008-05-06 17:18:48 (GMT) |
---|---|---|
committer | Mike McGreevy <mamcgree@hdfgroup.org> | 2008-05-06 17:18:48 (GMT) |
commit | 464e4619f670006c2477583b7f9d7b0530b0a245 (patch) | |
tree | 8e6e47858558d482ffb62d0a416985cdf487c322 /bin | |
parent | 1e313e76ff45794393ab86513d54b7f8b5647988 (diff) | |
download | hdf5-464e4619f670006c2477583b7f9d7b0530b0a245.zip hdf5-464e4619f670006c2477583b7f9d7b0530b0a245.tar.gz hdf5-464e4619f670006c2477583b7f9d7b0530b0a245.tar.bz2 |
[svn-r14940] Purpose: Bug Fix (Bug 794)
Description: Test gcov script on kagiso
Solution: The bin/gcov script was not working on kagiso. The script was
retooled and now works correctly on kagiso, placing code coverage logs
into the generated gcov_logs directory when run.
Tested: kagiso
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gcov_script | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/bin/gcov_script b/bin/gcov_script index 4900efb..ac82189 100755 --- a/bin/gcov_script +++ b/bin/gcov_script @@ -17,36 +17,37 @@ # Configures, builds, and runs tests in-place; the output files will be placed # in a directory called gcov_logs. # Must be invoked from the root hdf5 directory. -# This script has only been tested on heping. +# This script has been tested on kagiso. CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs" export CFLAGS -./configure --enable-debug=all +LDFLAGS="$LDFLAGS -lgcov" +export LDFLAGS +CC=gcc +export CC +./configure make make check mkdir gcov_logs cd src -for j in *.c +for j in *.h *.c + do + ln -s ../$j .libs/$j + done +cd .libs +for j in *.gcda do gcov -b $j >> gcov.log 2>&1 done for j in *.gcov + do + mv $j ../../gcov_logs + done +mv gcov.log ../../gcov_logs +for j in *.c *.h do - mv $j ../gcov_logs + rm $j done -mv gcov.log ../gcov_logs -cd .. - - - - - - - - - - - - +cd ../.. |