From 73c0decdcebde53773f5607e64c3a6243854a6c5 Mon Sep 17 00:00:00 2001 From: Martyn Russell Date: Tue, 11 Feb 2014 19:56:45 +0000 Subject: tests: Updated gtester scripts to improve testing system We imported Makefile.decl from glib when it was using Subversion, a long time ago. The script had a few issues (like running all unit tests twice on make distcheck) and needed to be updated. I've stolen a latest version from GLib's glib.mk and also their m4 macros which are required to make this all work too. This gives us the advantage of defining installable and uninstallable test cases as well as test data, scripts and other useful stuff. The debug output also looks quite good. And distcheck passes :) --- tests/libtracker-extract/Makefile.am | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/libtracker-extract') diff --git a/tests/libtracker-extract/Makefile.am b/tests/libtracker-extract/Makefile.am index b8f5a90bd..5a65ceac4 100644 --- a/tests/libtracker-extract/Makefile.am +++ b/tests/libtracker-extract/Makefile.am @@ -1,27 +1,27 @@ include $(top_srcdir)/Makefile.decl -noinst_PROGRAMS = $(TEST_PROGS) +noinst_PROGRAMS += $(test_programs) -TEST_PROGS += \ +test_programs = \ tracker-test-utils \ tracker-test-xmp \ tracker-extract-info-test \ tracker-guarantee-test if HAVE_EXIF -TEST_PROGS += tracker-exif-test +test_programs += tracker-exif-test endif if HAVE_IPTC # This test also requires libjpeg... -TEST_PROGS += tracker-iptc-test +test_programs += tracker-iptc-test endif if HAVE_ENCA -TEST_PROGS += tracker-encoding +test_programs += tracker-encoding else if HAVE_MEEGOTOUCH -TEST_PROGS += tracker-encoding +test_programs += tracker-encoding endif endif @@ -58,7 +58,7 @@ tracker_iptc_test_SOURCES = tracker-iptc-test.c tracker_iptc_test_LDADD = $(LDADD) $(LIBJPEG_LIBS) tracker_iptc_test_CFLAGS = $(LIBJPEG_CFLAGS) -EXTRA_DIST = \ +EXTRA_DIST += \ encoding-detect.bin \ areas.xmp \ areas-with-contacts.xmp \ -- cgit v1.2.1