tests/plover-gtk/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Fri Jun 01 17:19:01 2018 +0100 (2018-06-01)
changeset 71 bd272d15bea4
parent 43 6b3034a884dc
permissions -rw-r--r--
Treat invalid URIs as programming errors
     1 AM_CFLAGS=-g $(PLOVER_GTK_CFLAGS)
     2 INCLUDES=-I$(top_srcdir)
     3 LDADD=../../plover-gtk/libplover-gtk.la ../../plover/libplover.la \
     4   $(PLOVER_GTK_LIBS)
     5 
     6 TEST_EXTENSIONS =
     7 
     8 if HAVE_CHECK_TOOLS
     9 
    10 TESTS = $(txt_tests) $(gui_tests:=.xvfb)
    11 TESTS_ENVIRONMENT = gtk_srcdir="$(top_srcdir)/plover-gtk"
    12 TEST_EXTENSIONS += .xvfb
    13 XVFB_LOG_COMPILER = $(top_srcdir)/tests/xvfb-run
    14 XVFB_LOG_FLAGS = --auto-servernum --auth-file .Xauthority
    15 
    16 check_PROGRAMS = $(txt_tests) $(gui_tests)
    17 
    18 txt_tests = test-packagefilestore test-packagestore test-stockicons
    19 gui_tests = test-transactionhelper
    20 
    21 test_packagefilestore_SOURCES = test-packagefilestore.c treemodel.c treemodel.h
    22 test_packagestore_SOURCES = test-packagestore.c treemodel.c treemodel.h
    23 test_stockicons_DEPENDENCIES = \
    24   icons/hicolor/scalable/mimetypes/application-x-redhat-package-manager.svg
    25 
    26 .c.xvfb:
    27 	$(AM_V_GEN)echo '#!/bin/sh' > $@
    28 	$(AM_V_GEN)echo '$(LOG_COMPILER) $(LOG_FLAGS) ./$*' >> $@
    29 	$(AM_V_GEN)chmod +x $@
    30 	
    31 icons/hicolor/scalable/mimetypes/application-x-redhat-package-manager.svg: \
    32   $(top_srcdir)/plover-open/mimetypes-application-x-rpm.svg
    33 	$(PLOVER_V_SKIP)mkdir -p icons/hicolor/scalable/mimetypes \
    34 	  icons/hicolor/24x24/mimetypes icons/hicolor/48x48/mimetypes 
    35 	$(AM_V_GEN)cp $< $@
    36 	$(AM_V_GEN)rsvg -w 24 -h 24 -f png $< \
    37 	  icons/hicolor/24x24/mimetypes/application-x-redhat-package-manager.png
    38 	$(AM_V_GEN)rsvg -w 48 -h 48 -f png $< \
    39 	  icons/hicolor/48x48/mimetypes/application-x-redhat-package-manager.png
    40 
    41 endif
    42 
    43 @VALGRIND_CHECK_RULES@
    44 VALGRIND_SUPPRESSIONS_FILES = ../glib.supp
    45 
    46 clean-local:
    47 	rm -rf icons razor-test-dir-* $(gui_tests:=.xvfb) .Xauthority
    48 	rm -f razor-set-*