summaryrefslogtreecommitdiff
path: root/legacy/eet/Makefile.am
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2011-01-16 18:16:11 +0000
committerVincent Torri <vincent.torri@gmail.com>2011-01-16 18:16:11 +0000
commitb1b562004584aea5dc166b49b32f87d73d9437dc (patch)
tree68bb9c1b4c5f82bcc8ef58be0b01d6b11deb99f9 /legacy/eet/Makefile.am
parentd3420a210dc68916b0887e355b390854bede58be (diff)
put again eet tests in the source tree
SVN revision: 56194
Diffstat (limited to 'legacy/eet/Makefile.am')
-rw-r--r--legacy/eet/Makefile.am53
1 files changed, 52 insertions, 1 deletions
diff --git a/legacy/eet/Makefile.am b/legacy/eet/Makefile.am
index 3b08eaff84..190ca849f0 100644
--- a/legacy/eet/Makefile.am
+++ b/legacy/eet/Makefile.am
@@ -34,8 +34,10 @@ eet.spec \
34m4/ac_attribute.m4 \ 34m4/ac_attribute.m4 \
35m4/ac_path_generic.m4 \ 35m4/ac_path_generic.m4 \
36m4/efl_binary.m4 \ 36m4/efl_binary.m4 \
37m4/efl_coverage.m4 \
37m4/efl_doxygen.m4 \ 38m4/efl_doxygen.m4 \
38m4/efl_fnmatch.m4 \ 39m4/efl_fnmatch.m4 \
40m4/efl_tests.m4 \
39m4/efl_threads.m4 \ 41m4/efl_threads.m4 \
40m4/efl_path_max.m4 \ 42m4/efl_path_max.m4 \
41README.in \ 43README.in \
@@ -44,10 +46,59 @@ README
44pkgconfigdir = $(libdir)/pkgconfig 46pkgconfigdir = $(libdir)/pkgconfig
45pkgconfig_DATA = eet.pc 47pkgconfig_DATA = eet.pc
46 48
47.PHONY: doc 49.PHONY: doc coverage
48 50
49# Documentation 51# Documentation
50 52
51doc: 53doc:
52 @echo "entering doc/" 54 @echo "entering doc/"
53 make -C doc doc 55 make -C doc doc
56
57# Unit tests
58
59if EFL_ENABLE_TESTS
60
61check-local:
62 @./src/tests/eet_suite
63
64else
65
66check-local:
67 @echo "reconfigure with --enable-tests"
68
69endif
70
71# Coverage report
72
73if EFL_ENABLE_COVERAGE
74lcov-reset:
75 @rm -rf coverage
76 @find . -name "*.gcda" -exec rm {} \;
77 @lcov --directory . --zerocounters
78
79lcov-report:
80 @mkdir coverage
81 @lcov --compat-libtool --directory . --capture --output-file coverage/coverage.info
82 @lcov -l coverage/coverage.info |grep "\\.h" |cut -d " " -f 2 > coverage/remove
83 @lcov -r coverage/coverage.info `cat coverage/remove` > coverage/coverage.cleaned.info
84 @rm coverage/remove
85 @mv coverage/coverage.cleaned.info coverage/coverage.info
86 @genhtml -t "$(PACKAGE_STRING)" -o coverage coverage/coverage.info
87
88coverage:
89 @make lcov-reset
90 @make check
91 @make lcov-report
92
93clean-local:
94 @rm -rf coverage
95else
96lcov-reset:
97 @echo "reconfigure with --enable-coverage"
98
99lcov-report:
100 @echo "reconfigure with --enable-coverage"
101
102coverage:
103 @echo "reconfigure with --enable-tests --enable-coverage"
104endif