2009-02-06 21:22:17 -05:00
|
|
|
#!/bin/sh
|
2010-07-24 20:39:04 -04:00
|
|
|
srcdir=`pwd`
|
|
|
|
|
2012-04-16 12:32:22 -04:00
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$srcdir/../../build/libs/evoral:$srcdir/../../build/libs/pbd
|
2009-10-23 13:30:11 -04:00
|
|
|
if [ ! -f './test/testdata/TakeFive.mid' ]; then
|
|
|
|
echo "This script must be run from within the libs/evoral directory";
|
2011-11-22 19:17:31 -05:00
|
|
|
exit 1;
|
2009-04-12 18:29:05 -04:00
|
|
|
fi
|
2009-10-23 13:30:11 -04:00
|
|
|
|
|
|
|
# Make symlink to TakeFive.mid in build directory
|
2012-04-16 12:32:22 -04:00
|
|
|
cd ../../build/libs/evoral
|
2009-10-23 13:30:11 -04:00
|
|
|
mkdir -p ./test/testdata
|
|
|
|
ln -fs $srcdir/test/testdata/TakeFive.mid \
|
|
|
|
./test/testdata/TakeFive.mid
|
|
|
|
|
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"
|