tests/plover/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Fri Jun 08 20:13:00 2018 +0100 (2018-06-08)
changeset 79 c2dbb86da017
parent 53 2740f1329ddc
permissions -rw-r--r--
Release 0.5.4
     1 AM_CFLAGS=-g $(LIBPLOVER_CFLAGS)
     2 INCLUDES=-I$(top_srcdir)
     3 LDADD=../../plover/libplover.la $(LIBPLOVER_LIBS)
     4 
     5 if HAVE_CHECK_TOOLS
     6 
     7 TESTS = $(test_programs)
     8 TESTS_ENVIRONMENT = tests_srcdir="$(top_srcdir)/tests"
     9 
    10 check_PROGRAMS = $(test_programs)
    11 
    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
    15 
    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)
    21 
    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
    26 
    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
    31 
    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.
    36 
    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>/'; \
    44 	  fi && \
    45 	  echo '</gresource>' && \
    46 	  echo '</gresources>') > $@
    47 
    48 FORCE:
    49 
    50 endif
    51 
    52 @VALGRIND_CHECK_RULES@
    53 VALGRIND_SUPPRESSIONS_FILES = ../glib.supp
    54 
    55 clean-local:
    56 	rm -rf test-log-rotate razor-test-dir-*
    57 	rm -f razor-set-*
    58 
    59 BUILT_SOURCES = test-uri-handler-gresource.c test-uri-handler-gresource.h
    60 
    61 CLEANFILES = test-uri-handler-gresource.c test-uri-handler-gresource.h \
    62 	test-uri-handler.gresource.xml