[tracker/rss-enclosures] And the autotools to round-up the operation
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] And the autotools to round-up the operation
- Date: Wed, 24 Nov 2010 01:24:08 +0000 (UTC)
commit ec9ffb0ed2208dc2e91d3a61d0a24f2d874c691f
Author: Ivan Frade <ivan frade nokia com>
Date: Wed Aug 18 18:52:41 2010 +0300
And the autotools to round-up the operation
Makefile.am | 3 +
configure.ac | 19 ++++++--
tests/functional-tests/Makefile.am | 80 ++++++++++++++++++++++++------------
3 files changed, 71 insertions(+), 31 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 08c0103..2745406 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -50,6 +50,9 @@ gen-ChangeLog:
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
fi
+functional-test:
+ cd tests/functional-tests/ && $(MAKE) $(AM_MAKEFLAGS) $@
+
EXTRA_DIST = \
ChangeLog.pre-0-6-93 \
gitlog-to-changelog \
diff --git a/configure.ac b/configure.ac
index 12db6bb..a274056 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1938,11 +1938,20 @@ AC_CONFIG_FILES([
tests/libtracker-fts/limits/Makefile
tests/libtracker-fts/prefix/Makefile
tests/functional-tests/Makefile
- tests/functional-tests/data/Makefile
- tests/functional-tests/data/Music/Makefile
- tests/functional-tests/data/Images/Makefile
- tests/functional-tests/data/Video/Makefile
- tests/functional-tests/data/Text/Makefile
+ tests/functional-tests/common/Makefile
+ tests/functional-tests/common/utils/configuration.py
+ tests/functional-tests/common/utils/Makefile
+ tests/functional-tests/unittest2/Makefile
+ tests/functional-tests/test-extraction-data/Makefile
+ tests/functional-tests/test-extraction-data/audio/Makefile
+ tests/functional-tests/test-extraction-data/images/Makefile
+ tests/functional-tests/test-extraction-data/office/Makefile
+ tests/functional-tests/test-extraction-data/video/Makefile
+ tests/functional-tests/test-writeback-data/Makefile
+ tests/functional-tests/test-configurations/Makefile
+ tests/functional-tests/test-configurations/miner-basic-ops/Makefile
+ tests/functional-tests/test-configurations/writeback/Makefile
+ tests/functional-tests/ttl/Makefile
tests/Makefile
tests/tracker-miner-fs/Makefile
tests/tracker-extract/Makefile
diff --git a/tests/functional-tests/Makefile.am b/tests/functional-tests/Makefile.am
index b9245a8..d1c2a14 100644
--- a/tests/functional-tests/Makefile.am
+++ b/tests/functional-tests/Makefile.am
@@ -1,6 +1,6 @@
include $(top_srcdir)/Makefile.decl
-SUBDIRS = data
+SUBDIRS=common test-configurations test-extraction-data test-writeback-data ttl unittest2
INCLUDES = \
-I$(top_srcdir)/src/libtracker-sparql \
@@ -18,8 +18,13 @@ INCLUDES = \
configdir = $(datadir)/tracker-tests
config_SCRIPTS = \
+ __init__.py \
+ tests.xml \
+ $(slow_tests) \
+ $(standard_tests)
+
+standard_tests = \
01-insertion.py \
- 02-metacontacts.py \
03-fts-functions.py \
04-group-concat.py \
05-coalesce.py \
@@ -27,31 +32,34 @@ config_SCRIPTS = \
07-graph.py \
08-unique-insertions.py \
09-concurrent-query.py \
- backup-restore-tc.py \
- bootup-tc.py \
- configuration.py \
- metadata_extraction_tc.py \
+ 14-signals.py \
+ 200-backup-restore.py \
+ 300-miner-basic-ops.py \
+ 310-fts-indexing.py \
+ 400-extractor.py \
+ 500-writeback.py \
mass-storage-mode.py \
- fts-tc.py \
- miner-basic-ops.py \
- performance-tc.py \
- tests.xml \
- virtual-files-tc.py \
- writeback-tc.py
+ performance-tc-modified.py \
+ virtual-files-tc.py
-bashscriptsdir = $(datadir)/tracker-tests
+slow_tests = \
+ 10-sqlite-misused.py \
+ 11-sqlite-batch-misused.py \
+ 12-transactions.py \
+ 13-threaded-store.py
-bashscripts_in_files = \
- force-sqlite-misused.sh.in \
- force-sqlite-misused-batch.sh.in \
- helper-test-data.sh.in
+tests.xml:
+ @if test -h /targets/links/scratchbox.config ; then \
+ export SBOX_REDIRECT_IGNORE=/usr/bin/python ; \
+ fi;
+ ./create-tests-xml.py $(standard_tests) > tests.xml
-bashscripts_SCRIPTS = \
- $(bashscripts_in_files:.sh.in=.sh)
+10-sqlite-misused.py: ttl/gen-test-data.stamp
+11-sqlite-misused-batch.py: ttl/gen-test-data.stamp
+13-busy-store.py: ttl/gen-test-data.stamp
-%.sh: %.sh.in
- @sed -e "s|@topsrcdir[ ]|${top_srcdir}|" \
- -e "s|@libexecdir[ ]|${libexecdir}|" $< > $@
+ttl/gen-test-data.stamp:
+ cd ttl && $(MAKE) $(AM_MAKEFLAGS)
noinst_PROGRAMS = busy-handling-test direct-query-test bus-query-test default-update-test bus-update-test
@@ -144,10 +152,32 @@ BUILT_SOURCES = \
bus-update-test.vala.stamp
+functional-test: ${standard_tests}
+ @if test -h /targets/links/scratchbox.config ; then \
+ export SBOX_REDIRECT_IGNORE=/usr/bin/python ; \
+ ENV_COMMAND_WRAPPER=meego-run ;\
+ else \
+ ENV_COMMAND_WRAPPER="" ; \
+ fi ; \
+ for testfile in ${standard_tests} ; do \
+ echo "Trying with" $$ENV_COMMAND_WRAPPER $$testfile ; \
+ test ! -x $$testfile || $$ENV_COMMAND_WRAPPER ./$$testfile > /dev/null; \
+ done
+
+functional-test-slow: ${slow_tests}
+ @if test -h /targets/links/scratchbox.config ; then \
+ export SBOX_REDIRECT_IGNORE=/usr/bin/python ; \
+ ENV_COMMAND_WRAPPER=meego-run ;\
+ else \
+ ENV_COMMAND_WRAPPER="" ; \
+ fi ; \
+ @for test in ${slow_tests} ; do \
+ echo "Trying with" $$ENV_COMMAND_WRAPPER $$test ; \
+ test ! -x $$test || $$ENV_COMMAND_WRAPPER ./$$test > /dev/null; \
+ done
+
EXTRA_DIST = \
$(config_SCRIPTS) \
- $(bashscripts_SCRIPTS) \
- $(bashscripts_in_files) \
$(BUILT_SOURCES) \
$(busy_handling_test_VALASOURCES) \
$(direct_query_test_VALASOURCES) \
@@ -155,8 +185,6 @@ EXTRA_DIST = \
$(bus_query_test_VALASOURCES) \
$(bus_update_test_VALASOURCES)
-CLEANFILES = $(bashscripts_SCRIPTS)
-
MAINTAINERCLEANFILES = \
$(BUILT_SOURCES) \
$(busy_handling_test_VALASOURCES:.vala=.c) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]