diff -r 000000000000 -r e61a449e94cb tests/plover-gtk/Makefile.am --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/plover-gtk/Makefile.am Mon Jun 13 12:19:50 2016 +0100 @@ -0,0 +1,45 @@ +AM_CFLAGS=-g $(PLOVER_GTK_CFLAGS) +INCLUDES=-I$(top_srcdir) +LDADD=../../plover-gtk/libplover-gtk.la ../../plover/libplover.la \ + $(PLOVER_GTK_LIBS) + +if HAVE_CHECK_TOOLS + +TESTS = $(txt_tests) $(gui_tests:=.xvfb) +TESTS_ENVIRONMENT = gtk_srcdir="$(top_srcdir)/plover-gtk" +TEST_EXTENSIONS = .xvfb +XVFB_LOG_COMPILER = $(top_srcdir)/tests/xvfb-run +XVFB_LOG_FLAGS = --auto-servernum --auth-file .Xauthority + +check_PROGRAMS = $(txt_tests) $(gui_tests) + +txt_tests = test-packagefilestore test-packagestore test-stockicons +gui_tests = test-transactionhelper + +test_packagefilestore_SOURCES = test-packagefilestore.c treemodel.c treemodel.h +test_packagestore_SOURCES = test-packagestore.c treemodel.c treemodel.h +test_stockicons_DEPENDENCIES = \ + icons/hicolor/scalable/mimetypes/application-x-redhat-package-manager.svg + +.c.xvfb: + $(AM_V_GEN)echo '#!/bin/sh' > $@ + $(AM_V_GEN)echo '$(LOG_COMPILER) $(LOG_FLAGS) ./$*' >> $@ + $(AM_V_GEN)chmod +x $@ + +icons/hicolor/scalable/mimetypes/application-x-redhat-package-manager.svg: \ + $(top_srcdir)/plover-open/mimetypes-application-x-rpm.svg + $(PLOVER_V_SKIP)mkdir -p icons/hicolor/scalable/mimetypes \ + icons/hicolor/24x24/mimetypes icons/hicolor/48x48/mimetypes + $(AM_V_GEN)cp $< $@ + $(AM_V_GEN)rsvg -w 24 -h 24 -f png $< \ + icons/hicolor/24x24/mimetypes/application-x-redhat-package-manager.png + $(AM_V_GEN)rsvg -w 48 -h 48 -f png $< \ + icons/hicolor/48x48/mimetypes/application-x-redhat-package-manager.png + +endif + +@VALGRIND_CHECK_RULES@ +VALGRIND_SUPPRESSIONS_FILES = ../glib.supp + +clean-local: + rm -rf icons razor-test-dir-* $(gui_tests:=.xvfb) .Xauthority