Skip to content

Commit

Permalink
[config] Added separate cover targets related to the various subtarge…
Browse files Browse the repository at this point in the history
…ts of

'make fulltest'.  This means that if one is interested in the coverage of
'make testj' one merely needs to run 'make cover-testj'.  The 'make cover'
target runs all cover test targets.  This is still a work in progress.


git-svn-id: https://svn.parrot.org/parrot/trunk@21372 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
paultcochrane committed Sep 19, 2007
1 parent fd72294 commit 93c75fc
Showing 1 changed file with 71 additions and 4 deletions.
75 changes: 71 additions & 4 deletions config/gen/makefiles/root.in
Original file line number Diff line number Diff line change
Expand Up @@ -1910,17 +1910,84 @@ COVER_DIRS = \
$(IO_DIR) \
$(IMCC_DIR)

cover:
$(PERL) Configure.pl --ccflags="$(CC_FLAGS) $(COVER_FLAGS)" \
--linkflags="$(COVER_FLAGS)" --ldflags="$(COVER_FLAGS)"
-PERL5OPT="-MDevel::Cover" @make@ fulltest
cover: \
cover.dummy \
cover-testb \
#CONDITIONED_LINE(cg_flag): cover-testC \
cover-testf \
#CONDITIONED_LINE(cg_flag): cover-testg \
#CONDITIONED_LINE(jitcapable): cover-testj \
cover-testr \
cover-testS \
cover-src \
cover-perl \
cover-codingstd \
cover-benchmark \
cover-doc \
cover-distro
for dir in $(COVER_DIRS); \
do \
pwd=$$PWD; cd $$dir; gcov *.c; cd $$pwd; \
gcov2perl $$dir/*.gcov; \
done
cover -ignore_re '^\/usr\/local\/bin'

cover.dummy:
$(PERL) Configure.pl --ccflags="$(CC_FLAGS) $(COVER_FLAGS)" \
--linkflags="$(COVER_FLAGS)" --ldflags="$(COVER_FLAGS)"

cover-testb:
@echo "make cover-testb"
-PERL5OPT="-MDevel::Cover" @make@ testb

cover-testC:
@echo "make cover-testC"
-PERL5OPT="-MDevel::Cover" @make@ testC

cover-testf:
@echo "make cover-testf"
-PERL5OPT="-MDevel::Cover" @make@ testf

cover-testg:
@echo "make cover-testg"
-PERL5OPT="-MDevel::Cover" @make@ testg

cover-testj:
@echo "make cover-testj"
-PERL5OPT="-MDevel::Cover" @make@ testj

cover-testr:
@echo "make cover-testr"
-PERL5OPT="-MDevel::Cover" @make@ testr

cover-testS:
@echo "make cover-testS"
-PERL5OPT="-MDevel::Cover" @make@ testS

cover-src:
@echo "make cover-src"
-PERL5OPT="-MDevel::Cover" @make@ src_tests

cover-perl:
@echo "make cover-perl"
-PERL5OPT="-MDevel::Cover" @make@ perl_tests

cover-codingstd:
@echo "make cover-codingstd"
-PERL5OPT="-MDevel::Cover" @make@ codingstd_tests

cover-benchmark:
@echo "make cover-benchmark"
-PERL5OPT="-MDevel::Cover" @make@ benchmark_tests

cover-doc:
@echo "make cover-doc"
-PERL5OPT="-MDevel::Cover" @make@ doc_tests

cover-distro:
@echo "make cover-distro"
-PERL5OPT="-MDevel::Cover" @make@ distro_tests

cover-clean:
for dir in $(COVER_DIRS); \
do \
Expand Down

0 comments on commit 93c75fc

Please sign in to comment.