[grilo/debian: 30/33] build: add option to build tests
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo/debian: 30/33] build: add option to build tests
- Date: Thu, 27 Jan 2011 22:40:01 +0000 (UTC)
commit ae0389d29c50a0edd56f362537c80313c0034cca
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Thu Jan 27 18:20:50 2011 +0000
build: add option to build tests
Add "--enable-tests" to build tests.
Makefile.am | 6 +++++-
configure.ac | 10 ++++++++++
2 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 7b245bd..a802535 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,7 +7,11 @@
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = src libs bindings tools tests
+SUBDIRS = src libs bindings tools
+
+if ENABLE_TESTS
+SUBDIRS += tests
+endif
if ENABLE_GTK_DOC
SUBDIRS += doc
diff --git a/configure.ac b/configure.ac
index ef5734b..979b870 100644
--- a/configure.ac
+++ b/configure.ac
@@ -125,6 +125,16 @@ if test "x$enable_debug" = "xyes"; then
fi
# ----------------------------------------------------------
+# TESTS SUPPORT
+# ----------------------------------------------------------
+
+AC_ARG_ENABLE([tests],
+ AS_HELP_STRING([--enable-tests],[build unit tests]),
+ enable_tests=yes)
+
+AM_CONDITIONAL(ENABLE_TESTS, test "enable_tests" = "xyes")
+
+# ----------------------------------------------------------
# VALA BINDINGS
# ----------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]