2009-02-06 21:22:17 -05:00
|
|
|
#!/bin/sh
|
2010-07-24 20:39:04 -04:00
|
|
|
|
2014-11-29 04:30:35 -05:00
|
|
|
SCRIPTPATH=$( cd $(dirname $0) ; pwd -P )
|
|
|
|
TOP="$SCRIPTPATH/../.."
|
|
|
|
LIBS_DIR="$TOP/build/libs"
|
2009-10-23 13:30:11 -04:00
|
|
|
|
2014-11-29 04:30:35 -05:00
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBS_DIR/evoral:$LIBS_DIR/pbd
|
|
|
|
|
|
|
|
export EVORAL_TEST_PATH="$SCRIPTPATH/test/testdata"
|
|
|
|
|
|
|
|
cd $LIBS_DIR/evoral
|
2009-10-23 13:30:11 -04:00
|
|
|
|
2010-07-24 20:39:04 -04:00
|
|
|
lcov -q -d ./src -z
|
2009-10-23 13:30:11 -04:00
|
|
|
./run-tests
|
2010-07-24 20:39:04 -04:00
|
|
|
lcov -q -d ./src -d ./test -b ../../.. -c > coverage.lcov
|
|
|
|
lcov -q -r coverage.lcov *boost* *c++* *usr/include* -o coverage.lcov
|
2009-10-23 13:30:11 -04:00
|
|
|
mkdir -p ./coverage
|
2010-07-24 20:39:04 -04:00
|
|
|
genhtml -q -o coverage coverage.lcov
|
2009-10-23 13:30:11 -04:00
|
|
|
#rm -r coverage/boost
|
|
|
|
#rm -r coverage/usr
|
|
|
|
#rm -r coverage/c++
|
|
|
|
#rm -r coverage/cppunit
|
|
|
|
#rm -r coverage/glibmm-2.4
|
|
|
|
#rm -r coverage/sigc++-2.0
|
|
|
|
echo "Report written to:"
|
|
|
|
echo "../../build/default/libs/evoral/coverage/index.html"
|