Merge lp:~ballogy/libindicate/make-tests-optional into lp:libindicate/0.7

Proposed by Ted Gould
Status: Merged
Approved by: Ted Gould
Approved revision: 439
Merged at revision: 440
Proposed branch: lp:~ballogy/libindicate/make-tests-optional
Merge into: lp:libindicate/0.7
Diff against target: 45 lines (+17/-1)
2 files modified
Makefile.am (+4/-1)
configure.ac (+13/-0)
To merge this branch: bzr merge lp:~ballogy/libindicate/make-tests-optional
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
Review via email: mp+92312@code.launchpad.net

This proposal supersedes a proposal from 2011-11-21.

Description of the change

This change makes it possible to disable building tests with '--disable-tests' configure switch.

To post a comment you must log in.
Revision history for this message
Ted Gould (ted) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile.am'
--- Makefile.am 2011-09-20 03:51:52 +0000
+++ Makefile.am 2012-02-09 16:36:17 +0000
@@ -13,9 +13,12 @@
13 $(LIBINDICATEGTK_SUBDIR) \13 $(LIBINDICATEGTK_SUBDIR) \
14 bindings \14 bindings \
15 examples \15 examples \
16 tests \
17 $(DOC_SUBDIR)16 $(DOC_SUBDIR)
1817
18if WANT_TESTS
19SUBDIRS += tests
20endif
21
19EXTRA_DIST = \22EXTRA_DIST = \
20 COPYING.LGPL.2.1 \23 COPYING.LGPL.2.1 \
21 gtk-doc.make \24 gtk-doc.make \
2225
=== modified file 'configure.ac'
--- configure.ac 2011-09-20 04:26:16 +0000
+++ configure.ac 2012-02-09 16:36:17 +0000
@@ -237,6 +237,14 @@
237])237])
238GNOME_COMPILE_WARNINGS238GNOME_COMPILE_WARNINGS
239239
240#########################
241# Check if build tests
242#########################
243AC_ARG_ENABLE([tests],
244 AC_HELP_STRING([--disable-tests], [Disable tests]),,
245 [enable_tests=yes])
246AM_CONDITIONAL([WANT_TESTS], [test "x$enable_tests" != "xno"])
247
240##############################248##############################
241# Custom Junk249# Custom Junk
242##############################250##############################
@@ -349,3 +357,8 @@
349 [AC_MSG_NOTICE([ Gtk: no])],357 [AC_MSG_NOTICE([ Gtk: no])],
350 [AC_MSG_NOTICE([ Gtk: yes])]358 [AC_MSG_NOTICE([ Gtk: yes])]
351)359)
360
361AS_IF([test "x$enable_tests" != "xno"],
362 [AC_MSG_NOTICE([ Tests: yes])],
363 [AC_MSG_NOTICE([ Tests: no])]
364)

Subscribers

People subscribed via source and target branches