Merge lp:~ballogy/libunity/make-tests-optional into lp:libunity

Proposed by Balló György
Status: Needs review
Proposed branch: lp:~ballogy/libunity/make-tests-optional
Merge into: lp:libunity
Diff against target: 44 lines (+14/-1)
2 files modified
Makefile.am (+4/-1)
configure.ac (+10/-0)
To merge this branch: bzr merge lp:~ballogy/libunity/make-tests-optional
Reviewer Review Type Date Requested Status
James Henstridge Needs Information
Review via email: mp+83501@code.launchpad.net

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
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Hey György. Thanks for this. We're just going through some big changes
in the libunity build setup, so we'll get back to this one once the
bigger stuff lands. Sorry to keep you waiting.

Revision history for this message
James Henstridge (jamesh) wrote :

Is this MP still relevant? With a current checkout, if I run "make" followed by "make check", I see the Vala tests being compiled on the second invocation.

Does the configure flag add much benefit on top of this?

review: Needs Information

Unmerged revisions

88. By Balló György

Make building tests optional

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile.am'
--- Makefile.am 2011-08-04 09:49:49 +0000
+++ Makefile.am 2011-11-27 02:20:11 +0000
@@ -4,9 +4,12 @@
4 bindings \4 bindings \
5 doc \5 doc \
6 examples \6 examples \
7 test \
8 vapi7 vapi
98
9if WANT_TESTS
10SUBDIRS += test
11endif
12
10pkgconfigdir = $(libdir)/pkgconfig13pkgconfigdir = $(libdir)/pkgconfig
11pkgconfig_DATA = unity.pc14pkgconfig_DATA = unity.pc
1215
1316
=== modified file 'configure.ac'
--- configure.ac 2011-11-02 10:01:19 +0000
+++ configure.ac 2011-11-27 02:20:11 +0000
@@ -110,6 +110,14 @@
110AC_SUBST(GLIB_GENMARSHAL)110AC_SUBST(GLIB_GENMARSHAL)
111111
112######################################################################112######################################################################
113# Check if build tests
114######################################################################
115AC_ARG_ENABLE([tests],
116 AC_HELP_STRING([--disable-tests], [Disable tests]),,
117 [enable_tests=yes])
118AM_CONDITIONAL([WANT_TESTS], [test "x$enable_tests" != "xno"])
119
120######################################################################
113# Send directory information121# Send directory information
114######################################################################122######################################################################
115AC_DEFINE_UNQUOTED(DATADIR, "${prefix}/share",[Data directory])123AC_DEFINE_UNQUOTED(DATADIR, "${prefix}/share",[Data directory])
@@ -141,6 +149,8 @@
141 149
142 Build GI typelib : ${enable_introspection}150 Build GI typelib : ${enable_introspection}
143 151
152 Build tests : ${enable_tests}
153
144 CFlags : ${CPPFLAGS} $MAINTAINER_CFLAGS154 CFlags : ${CPPFLAGS} $MAINTAINER_CFLAGS
145])155])
146156

Subscribers

People subscribed via source and target branches