[gnome-software] Add a --enable-dogtail configure switch
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Add a --enable-dogtail configure switch
- Date: Thu, 16 Jan 2014 11:39:08 +0000 (UTC)
commit d00f9b8a4e18a85e61466ec1b8245c4fcdac2721
Author: Richard Hughes <richard hughsie com>
Date: Thu Jan 16 11:35:41 2014 +0000
Add a --enable-dogtail configure switch
You don't want to run the full dogtail checks when just building a tarball.
Makefile.am | 3 ++-
configure.ac | 7 +++++++
tests/Makefile.am | 10 ++++++++--
3 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 9b85366..a1e7f64 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -43,7 +43,8 @@ EXTRA_DIST = \
README
DISTCHECK_CONFIGURE_FLAGS = \
- --enable-gtk-doc --disable-tests
+ --enable-gtk-doc \
+ --disable-dogtail
distclean-local:
if test $(srdcir) = .; then :; else \
diff --git a/configure.ac b/configure.ac
index 4d95c1d..dc7ab82 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,6 +93,12 @@ AS_IF([test "$enable_man" != no], [
])
AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
+AC_ARG_ENABLE(dogtail,
+ [AS_HELP_STRING([--enable-dogtail],
+ [test using dogtail [default=yes]])],,
+ enable_dogtail=yes)
+AM_CONDITIONAL(ENABLE_DOGTAIL, test "$enable_dogtail" != no)
+
# this refers to the gnome-software plugin API version
# this is not in any way related to a package or soname version
GS_PLUGIN_API_VERSION=2
@@ -134,5 +140,6 @@ echo "
compiler: ${CC}
cflags: ${CFLAGS}
cppflags: ${CPPFLAGS}
+ Dogtail: ${enable_dogtail}
"
diff --git a/tests/Makefile.am b/tests/Makefile.am
index ac69086..ed28514 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,5 +1,11 @@
+if ENABLE_DOGTAIL
include $(top_srcdir)/glib-tap.mk
-test_scripts = \
- basic.py \
+dist_test_scripts = \
+ basic.py \
+ actions.py
+endif
+
+EXTRA_DIST = \
+ basic.py \
actions.py
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]