-SUBDIRS = libgupnp-av tests doc vala data
+TESTS_ENVIRONMENT = G_SLICE=debug-blocks \
+ LD_LIBRARY_PATH=$(top_builddir)/libgupnp-av/.libs:$(LD_LIBRARY_PATH) \
+ GUPNP_AV_DATADIR=$(top_srcdir)/data
-pkgconfig_DATA= gupnp-av-1.0.pc
-pkgconfigdir = $(libdir)/pkgconfig
+TESTS=$(check_PROGRAMS)
-ACLOCAL_AMFLAGS=-I m4 ${ACLOCAL_FLAGS}
+check_PROGRAMS = \
+ test-regression \
+ test-media-collection \
+ test-last-change-parser \
+ test-cds-last-change-parser
-DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection
+test_regression_SOURCES = test-regression.c
-# Extra clean files so that maintainer-clean removes *everything*
-MAINTAINERCLEANFILES = aclocal.m4 compile config.guess config.sub configure depcomp install-sh ltmain.sh Makefile.in missing config.h.in
+test_media_collection_SOURCES = \
+ test-media-collection.c
+
+test_last_change_parser_SOURCES = \
+ test-last-change-parser.c
+
+test_cds_last_change_parser_SOURCES = \
+ test-cds-last-change-parser.c
+
+LDADD = \
+ $(top_builddir)/libgupnp-av/libgupnp-av-1.0.la \
+ $(LIBGUPNP_LIBS)
+
+AM_CFLAGS = \
+ $(LIBGUPNP_CFLAGS) \
+ -I $(top_srcdir) \
+ -DDATA_PATH="\"$(srcdir)\""
+
+EXTRA_DIST = data/cds-last-change/00-cds-last-change.xml \
+ data/cds-last-change/01-cds-last-change.xml \
+ data/cds-last-change/02-cds-last-change.xml \
+ data/cds-last-change/03-cds-last-change.xml \
+ data/cds-last-change/04-cds-last-change.xml \
+ data/cds-last-change/05-cds-last-change.xml \
+ data/cds-last-change/06-cds-last-change.xml \
+ data/cds-last-change/07-cds-last-change.xml