Merge lp:~ballogy/bamf/make-tests-optional into lp:bamf/0.4

Proposed by Balló György
Status: Work in progress
Proposed branch: lp:~ballogy/bamf/make-tests-optional
Merge into: lp:bamf/0.4
Diff against target: 47 lines (+16/-3)
2 files modified
Makefile.am (+7/-3)
configure.in (+9/-0)
To merge this branch: bzr merge lp:~ballogy/bamf/make-tests-optional
Reviewer Review Type Date Requested Status
Unity Team Pending
Review via email: mp+82785@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.
lp:~ballogy/bamf/make-tests-optional updated
420. By Balló György

Make building tests optional

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Please, update your patch against trunk to get it merged.

Unmerged revisions

420. 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-01 23:02:54 +0000
+++ Makefile.am 2011-11-20 01:31:23 +0000
@@ -3,11 +3,15 @@
3SUBDIRS = \3SUBDIRS = \
4 lib/libbamf \4 lib/libbamf \
5 src \5 src \
6 data \
7 doc
8
9if WANT_TESTS
10SUBDIRS += \
6 tests/functional \11 tests/functional \
7 tests/bamfdaemon \12 tests/bamfdaemon \
8 tests/libbamf \13 tests/libbamf
9 data \14endif
10 doc
1115
12EXTRA_DIST = COPYING.LGPL autogen.sh build.rules.mk m4/i18n.m4 m4/programs.m4 m4/util.m416EXTRA_DIST = COPYING.LGPL autogen.sh build.rules.mk m4/i18n.m4 m4/programs.m4 m4/util.m4
13DISTCHECK_CONFIGURE_FLAGS = --enable-introspection=no --enable-gtk-doc17DISTCHECK_CONFIGURE_FLAGS = --enable-introspection=no --enable-gtk-doc
1418
=== modified file 'configure.in'
--- configure.in 2011-09-26 11:45:52 +0000
+++ configure.in 2011-11-20 01:31:23 +0000
@@ -124,6 +124,14 @@
124 AM_PATH_GTK_3_0124 AM_PATH_GTK_3_0
125fi125fi
126126
127#
128# Check if build tests
129#
130AC_ARG_ENABLE([tests],
131 AC_HELP_STRING([--disable-tests], [Disable tests]),,
132 [enable_tests=yes])
133AM_CONDITIONAL([WANT_TESTS], [test "x$enable_tests" != "xno"])
134
127dnl CFLAGS135dnl CFLAGS
128CFLAGS="$CFLAGS -Wall -Werror -lm"136CFLAGS="$CFLAGS -Wall -Werror -lm"
129137
@@ -157,4 +165,5 @@
157 Build Environment165 Build Environment
158 Install Prefix: ${prefix}166 Install Prefix: ${prefix}
159 GTK+ Version: ${with_gtk}167 GTK+ Version: ${with_gtk}
168 Tests: ${enable_tests}
160EOF169EOF

Subscribers

People subscribed via source and target branches