Uses cmake / ctest to run nightly lcov report.
This commit is contained in:
parent
54055cd3e7
commit
28ef42cbe7
1 changed files with 20 additions and 8 deletions
28
Makefile.am
28
Makefile.am
|
@ -35,14 +35,26 @@ precoverage :
|
||||||
find . -name '*.da' | xargs rm -f
|
find . -name '*.da' | xargs rm -f
|
||||||
rm -rf doc/coverage
|
rm -rf doc/coverage
|
||||||
|
|
||||||
coverage: all precoverage
|
coverage: precoverage
|
||||||
echo '(make profile requires CFLAGS="-fprofile-arcs -ftest-coverage -pg -O0")'
|
echo '(make profile requires CFLAGS="-fprofile-arcs -ftest-coverage -pg -O0")'
|
||||||
cd test/lladd
|
# cd test/lladd
|
||||||
make check || true
|
# make check || true
|
||||||
cd ../..
|
rm -rf coverage
|
||||||
lcov -c --directory src/libdfa/ --directory src/lladd/ --directory test/ > tmp.info
|
mkdir coverage
|
||||||
# lcov -c --directory . > tmp.info
|
cp ~/cron_stuff/CMakeCache.txt coverage
|
||||||
genhtml -o doc/coverage tmp.info
|
cd coverage ; pwd
|
||||||
rm tmp.info
|
cd coverage ; cmake ..
|
||||||
|
cd coverage ; mv DartConfiguration.tcl DartConfiguration.tcl~
|
||||||
|
cd coverage ; perl -ne 's/TimeOut\: 1500/TimeOut\: 3600/;print' < DartConfiguration.tcl~ > DartConfiguration.tcl
|
||||||
|
cd coverage ; make -j 4
|
||||||
|
cd coverage ; ctest || true
|
||||||
|
cd coverage ; lcov -c --directory src/libdfa/ --directory src/stasis/ --directory test/ --directory src/apps/referential/ > tmp.info || true
|
||||||
|
cd coverage ; genhtml -o ../doc/coverage tmp.info || true
|
||||||
|
cd coverage ; rm tmp.info
|
||||||
|
# cd ../..
|
||||||
|
# lcov -c --directory src/libdfa/ --directory src/lladd/ --directory test/ > tmp.info
|
||||||
|
## lcov -c --directory . > tmp.info
|
||||||
|
# genhtml -o doc/coverage tmp.info
|
||||||
|
# rm tmp.info
|
||||||
|
|
||||||
.PHONY: docs precoverage coverage
|
.PHONY: docs precoverage coverage
|
||||||
|
|
Loading…
Reference in a new issue