Merge lp:~dobey/unity-scope-click/check-run-tests into lp:unity-scope-click

Proposed by dobey
Status: Merged
Approved by: dobey
Approved revision: 85
Merged at revision: 83
Proposed branch: lp:~dobey/unity-scope-click/check-run-tests
Merge into: lp:unity-scope-click
Prerequisite: lp:~dobey/unity-scope-click/working-tests
Diff against target: 103 lines (+21/-15)
2 files modified
debian/rules (+0/-1)
src/Makefile.am (+21/-14)
To merge this branch: bzr merge lp:~dobey/unity-scope-click/check-run-tests
Reviewer Review Type Date Requested Status
Mike McCracken (community) Approve
PS Jenkins bot continuous-integration Approve
Alejandro J. Cura (community) Approve
Review via email: mp+197727@code.launchpad.net

Commit message

Run the tests during make check.
Rename click-scope-tests to more standard test-scope-click.
Move click-scope-tests to a noinst program to avoid installation to system.

To post a comment you must log in.
Revision history for this message
Alejandro J. Cura (alecu) wrote :

+1

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Mike McCracken (mikemc) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/rules'
2--- debian/rules 2013-07-19 16:09:57 +0000
3+++ debian/rules 2013-12-04 14:50:24 +0000
4@@ -11,5 +11,4 @@
5 NOCONFIGURE=1 dh_autoreconf ./autogen.sh
6
7 override_dh_install:
8- rm -f debian/*/usr/lib/*/*/click-scope-tests
9 dh_install --fail-missing
10
11=== modified file 'src/Makefile.am'
12--- src/Makefile.am 2013-10-07 15:32:27 +0000
13+++ src/Makefile.am 2013-12-04 14:50:24 +0000
14@@ -13,8 +13,10 @@
15 AM_LDFLAGS = $(COVERAGE_LDFLAGS) -R $(PROTOCOLPRIVATELIBDIR)
16
17 pkglibexec_PROGRAMS = \
18- click-scope \
19- click-scope-tests
20+ click-scope
21+
22+noinst_PROGRAMS = \
23+ test-click-scope
24
25 click_scope_CPPFLAGS = \
26 -DDATADIR=\"$(DATADIR)\" \
27@@ -61,7 +63,7 @@
28 $(click_scope_VALASOURCES:.vala=.c) \
29 $(NULL)
30
31-click_scope_tests_CPPFLAGS = \
32+test_click_scope_CPPFLAGS = \
33 -DDATADIR=\"$(DATADIR)\" \
34 -DPKGDATADIR=\"$(PKGDATADIR)\" \
35 -DG_LOG_DOMAIN=\"unity-scope-click\" \
36@@ -70,7 +72,7 @@
37 -I$(srcdir) \
38 -g
39
40-click_scope_tests_VALAFLAGS = \
41+test_click_scope_VALAFLAGS = \
42 -C \
43 --save-temps \
44 --pkg unity \
45@@ -86,11 +88,11 @@
46 $(srcdir)/assertions.vapi \
47 $(MAINTAINER_VALAFLAGS)
48
49-click_scope_tests_LDADD = \
50+test_click_scope_LDADD = \
51 $(SCOPE_DAEMON_LIBS) \
52 $(NULL)
53
54-click_scope_tests_VALASOURCES = \
55+test_click_scope_VALASOURCES = \
56 test-click-webservice.vala \
57 click-webservice.vala \
58 fake-data.vala \
59@@ -99,18 +101,18 @@
60 ubuntuone-credentials.vala \
61 $(NULL)
62
63-click_scope_tests_SOURCES = \
64- $(click_scope_tests_VALASOURCES:.vala=.c) \
65+test_click_scope_SOURCES = \
66+ $(test_click_scope_VALASOURCES:.vala=.c) \
67 $(NULL)
68
69 BUILT_SOURCES += \
70 click_scope.vala.stamp \
71- click_scope_tests.vala.stamp
72+ test_click_scope.vala.stamp
73
74 EXTRA_DIST += \
75 click_scope.vala.stamp \
76 $(click_scope_VALASOURCES) \
77- $(click_scope_tests_VALASOURCES) \
78+ $(test_click_scope_VALASOURCES) \
79 tdb.vapi \
80 tdb.deps \
81 $(NULL)
82@@ -119,12 +121,17 @@
83 $(AM_V_GEN) $(VALAC) $(click_scope_VALAFLAGS) $^
84 touch click_scope.vala.stamp
85
86-click_scope_tests.vala.stamp: $(click_scope_tests_VALASOURCES)
87- $(AM_V_GEN) $(VALAC) $(click_scope_tests_VALAFLAGS) $^
88- touch click_scope_tests.vala.stamp
89+test_click_scope.vala.stamp: $(test_click_scope_VALASOURCES)
90+ $(AM_V_GEN) $(VALAC) $(test_click_scope_VALAFLAGS) $^
91+ touch test_click_scope.vala.stamp
92+
93+check-local: $(noinst_PROGRAMS)
94+ for program in $(noinst_PROGRAMS); do \
95+ $(builddir)/$$program; \
96+ done
97
98 CLEANFILES += \
99 *.stamp \
100 $(click_scope_VALASOURCES:.vala=.c) \
101- $(click_scope_tests_VALASOURCES:.vala=.c) \
102+ $(test_click_scope_VALASOURCES:.vala=.c) \
103 $(NULL)

Subscribers

People subscribed via source and target branches

to all changes: