-
-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathrun-coverage.sh
More file actions
executable file
·21 lines (19 loc) · 696 Bytes
/
run-coverage.sh
File metadata and controls
executable file
·21 lines (19 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# runs the coverage test, building HTML display of test-covered code
#qmake CONFIG+=gcov CONFIG+=aegis
#make qmake
#make clean
#make -j4
for i in test/00/*; do
sh $i
done
# gen_info source path rewriting no longer seems to cope with the
# scidavis file layout, so just fake it by creating some symbolic
# links where lcov and genhtml expect the source files to be
ln -sf `pwd`/libscidavis/src tmp
ln -sf `pwd`/test/*.{h,cpp} tmp/test
dir=tmp/libscidavis
lcov -i -c -d . --exclude tmp/test --no-external -o lcovi.info
lcov -c -d . --exclude tmp/test --no-external -o lcovt.info
rm lcov.info
lcov -a lcovi.info -a lcovt.info -o lcov.info
genhtml --ignore-errors source -o coverage lcov.info