git-svn-id: svn://localhost/ardour2/branches/3.0@10782 d708f5d6-7413-0410-9779-e7cbd77b26cf
30 lines
907 B
Bash
Executable File
30 lines
907 B
Bash
Executable File
#!/bin/sh
|
|
srcdir=`pwd`
|
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$srcdir/../../build/default/libs/evoral:$srcdir/../../build/default/libs/pbd
|
|
if [ ! -f './test/testdata/TakeFive.mid' ]; then
|
|
echo "This script must be run from within the libs/evoral directory";
|
|
exit 1;
|
|
fi
|
|
|
|
# Make symlink to TakeFive.mid in build directory
|
|
cd ../../build/default/libs/evoral
|
|
mkdir -p ./test/testdata
|
|
ln -fs $srcdir/test/testdata/TakeFive.mid \
|
|
./test/testdata/TakeFive.mid
|
|
|
|
lcov -q -d ./src -z
|
|
./run-tests
|
|
lcov -q -d ./src -d ./test -b ../../.. -c > coverage.lcov
|
|
lcov -q -r coverage.lcov *boost* *c++* *usr/include* -o coverage.lcov
|
|
mkdir -p ./coverage
|
|
genhtml -q -o coverage coverage.lcov
|
|
#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"
|