summaryrefslogtreecommitdiff
path: root/legacy/eet/Makefile.am
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2008-05-16 15:07:03 +0000
committerCedric BAIL <cedric.bail@free.fr>2008-05-16 15:07:03 +0000
commit0f5070cf40ca161fdc8a0ce0f31b6ae19de63919 (patch)
tree03945b3bc878d49b3d83998d5acc438945da998c /legacy/eet/Makefile.am
parentd7cf02c1b5b0c52f0c0d382a44daec8616365044 (diff)
Introducing unit test in EFL using cvs check library for the test
suite (http://check.sourceforge.net/) and lcov from cvs also for the coverage accounting (http://ltp.sourceforge.net/coverage/lcov.php). This first set provide an overall coverage rate for src/lib 2111 of 2607 lines (81.0%) for eet. And it helped in finding and fixing the bugs of the last three days. SVN revision: 34591
Diffstat (limited to 'legacy/eet/Makefile.am')
-rw-r--r--legacy/eet/Makefile.am46
1 files changed, 46 insertions, 0 deletions
diff --git a/legacy/eet/Makefile.am b/legacy/eet/Makefile.am
index 0fc3ca44bf..76993fd1f0 100644
--- a/legacy/eet/Makefile.am
+++ b/legacy/eet/Makefile.am
@@ -38,3 +38,49 @@ gendoc
38 38
39pkgconfigdir = $(libdir)/pkgconfig 39pkgconfigdir = $(libdir)/pkgconfig
40pkgconfig_DATA = eet.pc 40pkgconfig_DATA = eet.pc
41
42
43if EET_ENABLE_TESTS
44
45check-local:
46 @./src/tests/eet_suite
47
48else
49
50check-local:
51 @echo "reconfigure with --enable-tests"
52
53endif
54
55if EET_ENABLE_COVERAGE
56lcov-reset:
57 @rm -rf coverage
58 @find . -name "*.gcda" -exec rm {} \;
59 @lcov --directory . --zerocounters
60
61lcov-report:
62 @mkdir coverage
63 @lcov --compat-libtool --directory . --capture --output-file coverage/coverage.info
64 @lcov -l coverage/coverage.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > coverage/remove
65 @lcov -r coverage/coverage.info `cat coverage/remove` > coverage/coverage.cleaned.info
66 @rm coverage/remove
67 @mv coverage/coverage.cleaned.info coverage/coverage.info
68 @genhtml -t "$(PACKAGE_STRING)" -o coverage coverage/coverage.info
69
70coverage:
71 @make lcov-reset
72 @make check
73 @make lcov-report
74
75clean-local:
76 @rm -rf coverage
77else
78lcov-reset:
79 @echo "reconfigure with --enable-gcov"
80
81lcov-report:
82 @echo "reconfigure with --enable-gcov"
83
84coverage:
85 @echo "reconfigure with --enable-tests --enable-gcov"
86endif