[Xfce4-commits] [xfce/libxfce4ui] 01/01: Add an --enable-tests option
noreply at xfce.org
noreply at xfce.org
Sun Jul 2 14:13:31 CEST 2017
This is an automated email from the git hooks/post-receive script.
e r i c p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/libxfce4ui.
commit 119e6b6e953034e5b088b569bd5222cfeb18cd46
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Sun Jul 2 15:12:39 2017 +0300
Add an --enable-tests option
and default it to off since only developers will be interested in
the tests.
---
configure.ac.in | 11 +++++++++++
tests/Makefile.am | 6 +++++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/configure.ac.in b/configure.ac.in
index 760a588..6120178 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -315,6 +315,16 @@ dnl *************************************
XDT_SUPPORTED_FLAGS([GTK_DOC_EXTRA_CFLAGS], [-Wno-sign-compare])
AC_SUBST([GTK_DOC_EXTRA_CFLAGS])
+#
+# Enable Tests
+#
+AC_ARG_ENABLE(tests,
+ [AS_HELP_STRING([--enable-tests],[enable validation test framework @<:@default=@<:@disabled@:>@@:>@])],
+ enable_tests=yes, enable_tests=no)
+AC_MSG_CHECKING([whether to build the validation test framework])
+AM_CONDITIONAL(BUILD_TESTS, test "x$enable_tests" = "xyes")
+AC_MSG_RESULT($enable_tests)
+
dnl *********************************
dnl *** Substitute platform flags ***
dnl *********************************
@@ -396,6 +406,7 @@ else
echo "* X11 session management: yes"
fi
echo "* Debug support: $enable_debug"
+echo "* Build tests: $enable_tests"
echo "* GNU Visibility: $have_gnuc_visibility"
if test -n "$with_vendor_info"; then
echo "* Vendor: $with_vendor_info"
diff --git a/tests/Makefile.am b/tests/Makefile.am
index b3f96b8..383d8da 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -23,6 +23,8 @@ AM_CPPFLAGS = \
noinst_PROGRAMS =
+if BUILD_TESTS
+
# test-ui-gtk2
if ENABLE_GTK2_LIBRARY
noinst_PROGRAMS += \
@@ -48,7 +50,7 @@ test_ui_gtk2_LDADD = \
$(LIBXFCE4UTIL_LIBS) \
$(top_builddir)/libxfce4ui/libxfce4ui-1.la
-endif
+endif # ENABLE_GTK2_LIBRARY
# test-ui-gtk3
noinst_PROGRAMS += \
@@ -73,3 +75,5 @@ test_ui_gtk3_LDADD = \
$(LIBSTARTUP_NOTIFICATION_LIBS) \
$(LIBXFCE4UTIL_LIBS) \
$(top_builddir)/libxfce4ui/libxfce4ui-2.la
+
+endif # BUILD_TESTS
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list