[tracker] Flag to enable functional tests. Default=no
- From: Ivan Frade <ifrade src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Flag to enable functional tests. Default=no
- Date: Thu, 15 Oct 2009 14:47:25 +0000 (UTC)
commit 4b9ac3c36f410b98c9b1273fa5e3a2014998d0bb
Author: Ivan Frade <ivan frade nokia com>
Date: Thu Oct 15 17:44:36 2009 +0300
Flag to enable functional tests. Default=no
Functional tests are python programs to run once tracker is installed.
This flag include/exclude the functional tests from the dist target.
configure.ac | 17 +++++++++++++++++
tests/functional-tests/Makefile.am | 11 +++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 64515fc..7a5294e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1287,6 +1287,21 @@ fi
AM_CONDITIONAL(HAVE_EVOLUTION_PLUGIN, test "$have_evolution_plugin" = "yes")
+
+####################################################################
+# Include/Exclude functional tests
+####################################################################
+AC_ARG_ENABLE([functional-tests],
+ AS_HELP_STRING([--enable-functional-tests],
+ [enable functional tests [[default=no]]]),,
+ [enable_functional_tests=no])
+
+if test x$enable_functional_tests != "xno"; then
+ AC_DEFINE(DIST_FUNCTIONAL_TESTS, 1, [Include functional tests in the installation])
+fi
+
+AM_CONDITIONAL(DIST_FUNCTIONAL_TESTS, test "x$enable_functional_tests" != "xno")
+
####################################################################
# Checks for gtk-doc and docbook-tools
####################################################################
@@ -1452,6 +1467,8 @@ Applications:
Build tracker-explorer: $have_tracker_explorer
Build tracker-search-bar: $have_tracker_search_bar
+ Functional tests: $enable_functional_tests
+
Metadata Extractors:
Support StreamAnalyzer: $have_streamanalyzer
diff --git a/tests/functional-tests/Makefile.am b/tests/functional-tests/Makefile.am
new file mode 100644
index 0000000..8284d5f
--- /dev/null
+++ b/tests/functional-tests/Makefile.am
@@ -0,0 +1,11 @@
+include $(top_srcdir)/Makefile.decl
+
+if DIST_FUNCTIONAL_TESTS
+configdir = $(datadir)/tracker-tests
+
+config_DATA = \
+ tests.xml \
+ 01-insertion.py
+
+EXTRA_DIST = $(config_DATA)
+endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]