second (and hopefully) final part of changes to respond to header format changes...
[ArdourMidi.git] / libs / evoral / run-tests.sh
blob64c36a8fec88cc70c613b0fa527f4414657ce111
1 #!/bin/sh
2 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../../build/default/libs/evoral
3 if [ ! -f './test/testdata/TakeFive.mid' ]; then
4 echo "This script must be run from within the libs/evoral directory";
5 exit 1;
6 fi
8 srcdir=`pwd`
10 # Make symlink to TakeFive.mid in build directory
11 cd ../../build/default/libs/evoral
12 mkdir -p ./test/testdata
13 ln -fs $srcdir/test/testdata/TakeFive.mid \
14 ./test/testdata/TakeFive.mid
16 lcov -d ./src -z
17 ./run-tests
18 lcov -d ./src -d ./test -b ../../.. -c > coverage.lcov
19 lcov -r coverage.lcov *boost* *c++* *usr/include* -o coverage.lcov
20 mkdir -p ./coverage
21 genhtml -o coverage coverage.lcov
22 #rm -r coverage/boost
23 #rm -r coverage/usr
24 #rm -r coverage/c++
25 #rm -r coverage/cppunit
26 #rm -r coverage/glibmm-2.4
27 #rm -r coverage/sigc++-2.0
28 echo "Report written to:"
29 echo "../../build/default/libs/evoral/coverage/index.html"