Merge lp:~muffinresearch/ubuntuone-client/add-make-test-coverage into lp:ubuntuone-client

Proposed by Stuart Colville
Status: Merged
Approved by: dobey
Approved revision: 513
Merged at revision: 516
Proposed branch: lp:~muffinresearch/ubuntuone-client/add-make-test-coverage
Merge into: lp:ubuntuone-client
Diff against target: 49 lines (+34/-0)
2 files modified
.coveragerc (+27/-0)
Makefile.am (+7/-0)
To merge this branch: bzr merge lp:~muffinresearch/ubuntuone-client/add-make-test-coverage
Reviewer Review Type Date Requested Status
Rick McBride (community) Approve
Tim Cole (community) Approve
Review via email: mp+24512@code.launchpad.net

Commit message

adds 'make test-coverage' so that coverage reporting can be generated by Hudson

Description of the change

This adds make test-coverage so that coverage reporting can be generated by Hudson.

To post a comment you must log in.
Revision history for this message
Stuart Colville (muffinresearch) wrote :

This depends on python-coverage. However the packaged version is very old so I've developed against the latest version from PyPi. I will need to package the latest version for the ubuntuone-hackers PPA to make this easier in due course.

See: http://nedbatchelder.com/code/coverage/ for installation details.

Revision history for this message
Elliot Murphy (statik) wrote :

It should also be pretty easy to update the python-coverage package in debian and sync into maverick, then backport if needed. Then everyone wins!

Revision history for this message
Stuart Colville (muffinresearch) wrote :

> It should also be pretty easy to update the python-coverage package in debian
> and sync into maverick, then backport if needed. Then everyone wins!

Yep absolutely! https://bugs.edge.launchpad.net/ubuntuone-infrastructure/+bug/575231

Revision history for this message
Tim Cole (tcole) wrote :

Cool, coverage metrics are always good to have.

review: Approve
Revision history for this message
Rick McBride (rmcbride) :
review: Approve
Revision history for this message
dobey (dobey) wrote :
Download full text (32.7 KiB)

The attempt to merge lp:~muffinresearch/ubuntuone-client/add-make-test-coverage into lp:ubuntuone-client failed.Below is the output from the failed tests.

/usr/bin/gnome-autogen.sh
checking for autoconf >= 2.53...
(B testing autoconf2.50... not found.
  testing autoconf... found 2.65
checking for automake >= 1.10...
(B testing automake-1.11... found 1.11.1
checking for libtool >= 1.5...
(B testing libtoolize... found 2.2.6b
checking for intltool >= 0.30...
(B testing intltoolize... found 0.41.0
checking for pkg-config >= 0.14.0...
(B testing pkg-config... found 0.22
Checking for required M4 macros...
(BChecking for forbidden M4 macros...
(BProcessing ./configure.ac
(BRunning libtoolize...
(Blibtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Running intltoolize...
(BRunning aclocal-1.11...
(BRunning autoconf...
(BRunning autoheader...
(BRunning automake-1.11...
(BRunning ./configure --with-protocol=/tmp/ubuntuone-storage-protocol ...
(Bchecking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reloa...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file '.coveragerc'
2--- .coveragerc 1970-01-01 00:00:00 +0000
3+++ .coveragerc 2010-04-30 17:10:36 +0000
4@@ -0,0 +1,27 @@
5+# .coveragerc to control coverage.py
6+[run]
7+branch = True
8+
9+[report]
10+# Regexes for lines to exclude from consideration
11+exclude_lines =
12+ # Have to re-enable the standard pragma
13+ pragma: no cover
14+
15+ # Don't complain about missing debug-only code:
16+ def __repr__
17+ if self\.debug
18+
19+ # Don't complain if tests don't hit defensive assertion code:
20+ raise AssertionError
21+ raise NotImplementedError
22+
23+ # Don't complain if non-runnable code isn't run:
24+ if 0:
25+ if __name__ == .__main__.:
26+
27+ignore_errors = True
28+
29+omit =
30+ /usr
31+ tests
32
33=== modified file 'Makefile.am'
34--- Makefile.am 2010-03-31 15:04:36 +0000
35+++ Makefile.am 2010-04-30 17:10:36 +0000
36@@ -66,6 +66,13 @@
37 fi
38 rm -rf _trial_temp
39
40+test-coverage: protocol logging.conf $(clientdefs_DATA) Makefile
41+ if test "x$(builddir)" == "x$(srcdir)"; then \
42+ PYTHONPATH="$(PYTHONPATH)" coverage run $(srcdir)/contrib/test; \
43+ fi
44+ coverage xml
45+ rm -rf _trial_temp
46+
47 check: lint test Makefile
48
49 docs: protocol Makefile

Subscribers

People subscribed via source and target branches