summaryrefslogtreecommitdiff
path: root/legacy/edje/Makefile.am
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2011-09-14 19:02:07 +0000
committerVincent Torri <vincent.torri@gmail.com>2011-09-14 19:02:07 +0000
commit662871b05753bd409fbd2003d067664e67262554 (patch)
tree49229bc2c44d64649a6a7f828bbccdfd31415776 /legacy/edje/Makefile.am
parent681749300e5575f1191fdbf990e62f008eefc9d8 (diff)
add tests and coverage support
SVN revision: 63394
Diffstat (limited to 'legacy/edje/Makefile.am')
-rw-r--r--legacy/edje/Makefile.am53
1 files changed, 52 insertions, 1 deletions
diff --git a/legacy/edje/Makefile.am b/legacy/edje/Makefile.am
index e640b23e2b..c926594204 100644
--- a/legacy/edje/Makefile.am
+++ b/legacy/edje/Makefile.am
@@ -18,6 +18,11 @@ missing \
18$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \ 18$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \
19$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 \ 19$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 \
20$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc.tar.bz2 \ 20$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc.tar.bz2 \
21m4/efl_binary.m4 \
22m4/efl_coverage.m4 \
23m4/efl_doxygen.m4 \
24m4/efl_path_max.m4 \
25m4/efl_tests.m4 \
21m4/libtool.m4 \ 26m4/libtool.m4 \
22m4/lt~obsolete.m4 \ 27m4/lt~obsolete.m4 \
23m4/ltoptions.m4 \ 28m4/ltoptions.m4 \
@@ -46,10 +51,56 @@ README
46pkgconfigdir = $(libdir)/pkgconfig 51pkgconfigdir = $(libdir)/pkgconfig
47pkgconfig_DATA = edje.pc 52pkgconfig_DATA = edje.pc
48 53
49.PHONY: doc 54.PHONY: doc coverage
50 55
51# Documentation 56# Documentation
52 57
53doc: 58doc:
54 @echo "entering doc/" 59 @echo "entering doc/"
55 make -C doc doc 60 make -C doc doc
61
62# Unit tests
63
64if EFL_ENABLE_TESTS
65
66check-local:
67 @./src/tests/edje_suite
68
69else
70
71check-local:
72 @echo "reconfigure with --enable-tests"
73
74endif
75
76# Coverage report
77
78if EFL_ENABLE_COVERAGE
79lcov-reset:
80 @rm -rf coverage
81 @find . -name "*.gcda" -exec rm {} \;
82 @lcov --directory . --zerocounters
83
84lcov-report:
85 @mkdir coverage
86 @lcov --compat-libtool --directory $(top_srcdir)/src --capture --output-file coverage/coverage.info
87 @lcov -l coverage/coverage.info |grep "\\.h" |cut -d " " -f 2 > coverage/remove
88 @lcov -r coverage/coverage.info `cat coverage/remove` > coverage/coverage.cleaned.info
89 @rm coverage/remove
90 @mv coverage/coverage.cleaned.info coverage/coverage.info
91 @genhtml -t "$(PACKAGE_STRING)" -o coverage coverage/coverage.info
92
93coverage:
94 @make lcov-reset
95 @make check
96 @make lcov-report
97else
98lcov-reset:
99 @echo "reconfigure with --enable-coverage"
100
101lcov-report:
102 @echo "reconfigure with --enable-coverage"
103
104coverage:
105 @echo "reconfigure with --enable-tests --enable-coverage"
106endif