1 AM_CFLAGS=-g $(LIBPLOVER_CFLAGS)
2 INCLUDES=-I$(top_srcdir)
3 LDADD=../../plover/libplover.la $(LIBPLOVER_LIBS)
7 TESTS = $(test_programs)
8 TESTS_ENVIRONMENT = tests_srcdir="$(top_srcdir)/tests"
10 check_PROGRAMS = $(test_programs)
12 test_programs = test-import-yum test-package test-repository test-packageset \
13 test-transaction test-comps test-log test-util test-razor test-vector \
14 test-exception-handler test-uri-handler
16 test_transaction_LDADD = $(LDADD) $(LUA_POSIX_LIBS)
17 test_razor_LDADD = $(LDADD) $(LUA_POSIX_LIBS)
18 test_uri_handler_SOURCES = test-uri-handler.c test-uri-handler-gresource.c \
19 test-uri-handler-gresource.h
20 test_uri_handler_LDADD = $(LDADD) $(LUA_POSIX_LIBS)
22 test-uri-handler-gresource.c: test-uri-handler.gresource.xml
23 $(AM_V_GEN)$(COMPILE_RESOURCES) --target=$@ --generate \
24 --sourcedir=../yum-repo-test-dir --manual-register \
25 test-uri-handler.gresource.xml
27 test-uri-handler-gresource.h: test-uri-handler.gresource.xml
28 $(AM_V_GEN)$(COMPILE_RESOURCES) --target=$@ --generate \
29 --sourcedir=../yum-repo-test-dir --manual-register \
30 test-uri-handler.gresource.xml
32 # Because this is needed for BUILT_SOURCES, we need to produce a syntactically
33 # correct file in all cases. In particular "make dist" on a clean tree won't
34 # have a ../yum-repo-test-dir directory, but in that case
35 # test-uri-handler-gresource won't be used either.
37 test-uri-handler.gresource.xml: FORCE
38 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="UTF-8"?>' && \
39 echo '<gresources>' && \
40 echo '<gresource prefix="/uk/co/juiblex/project/plover">' && \
41 if test -d ../yum-repo-test-dir; then \
42 find ../yum-repo-test-dir -type f -print | \
43 sed -e 's/^\.\.\/yum-repo-test-dir\/\(.*\)$$/<file>\1<\/file>/'; \
45 echo '</gresource>' && \
46 echo '</gresources>') > $@
52 @VALGRIND_CHECK_RULES@
53 VALGRIND_SUPPRESSIONS_FILES = ../glib.supp
56 rm -rf test-log-rotate razor-test-dir-*
59 BUILT_SOURCES = test-uri-handler-gresource.c test-uri-handler-gresource.h
61 CLEANFILES = test-uri-handler-gresource.c test-uri-handler-gresource.h \
62 test-uri-handler.gresource.xml