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
1=== modified file 'Makefile.am'
2--- Makefile.am 2011-08-01 23:02:54 +0000
3+++ Makefile.am 2011-11-20 01:31:23 +0000
4@@ -3,11 +3,15 @@
5 SUBDIRS = \
6 lib/libbamf \
7 src \
8+ data \
9+ doc
10+
11+if WANT_TESTS
12+SUBDIRS += \
13 tests/functional \
14 tests/bamfdaemon \
15- tests/libbamf \
16- data \
17- doc
18+ tests/libbamf
19+endif
20
21 EXTRA_DIST = COPYING.LGPL autogen.sh build.rules.mk m4/i18n.m4 m4/programs.m4 m4/util.m4
22 DISTCHECK_CONFIGURE_FLAGS = --enable-introspection=no --enable-gtk-doc
23
24=== modified file 'configure.in'
25--- configure.in 2011-09-26 11:45:52 +0000
26+++ configure.in 2011-11-20 01:31:23 +0000
27@@ -124,6 +124,14 @@
28 AM_PATH_GTK_3_0
29 fi
30
31+#
32+# Check if build tests
33+#
34+AC_ARG_ENABLE([tests],
35+ AC_HELP_STRING([--disable-tests], [Disable tests]),,
36+ [enable_tests=yes])
37+AM_CONDITIONAL([WANT_TESTS], [test "x$enable_tests" != "xno"])
38+
39 dnl CFLAGS
40 CFLAGS="$CFLAGS -Wall -Werror -lm"
41
42@@ -157,4 +165,5 @@
43 Build Environment
44 Install Prefix: ${prefix}
45 GTK+ Version: ${with_gtk}
46+ Tests: ${enable_tests}
47 EOF

Subscribers

People subscribed via source and target branches