1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/plover-gtk/Makefile.am Mon Jun 13 12:19:50 2016 +0100
1.3 @@ -0,0 +1,45 @@
1.4 +AM_CFLAGS=-g $(PLOVER_GTK_CFLAGS)
1.5 +INCLUDES=-I$(top_srcdir)
1.6 +LDADD=../../plover-gtk/libplover-gtk.la ../../plover/libplover.la \
1.7 + $(PLOVER_GTK_LIBS)
1.8 +
1.9 +if HAVE_CHECK_TOOLS
1.10 +
1.11 +TESTS = $(txt_tests) $(gui_tests:=.xvfb)
1.12 +TESTS_ENVIRONMENT = gtk_srcdir="$(top_srcdir)/plover-gtk"
1.13 +TEST_EXTENSIONS = .xvfb
1.14 +XVFB_LOG_COMPILER = $(top_srcdir)/tests/xvfb-run
1.15 +XVFB_LOG_FLAGS = --auto-servernum --auth-file .Xauthority
1.16 +
1.17 +check_PROGRAMS = $(txt_tests) $(gui_tests)
1.18 +
1.19 +txt_tests = test-packagefilestore test-packagestore test-stockicons
1.20 +gui_tests = test-transactionhelper
1.21 +
1.22 +test_packagefilestore_SOURCES = test-packagefilestore.c treemodel.c treemodel.h
1.23 +test_packagestore_SOURCES = test-packagestore.c treemodel.c treemodel.h
1.24 +test_stockicons_DEPENDENCIES = \
1.25 + icons/hicolor/scalable/mimetypes/application-x-redhat-package-manager.svg
1.26 +
1.27 +.c.xvfb:
1.28 + $(AM_V_GEN)echo '#!/bin/sh' > $@
1.29 + $(AM_V_GEN)echo '$(LOG_COMPILER) $(LOG_FLAGS) ./$*' >> $@
1.30 + $(AM_V_GEN)chmod +x $@
1.31 +
1.32 +icons/hicolor/scalable/mimetypes/application-x-redhat-package-manager.svg: \
1.33 + $(top_srcdir)/plover-open/mimetypes-application-x-rpm.svg
1.34 + $(PLOVER_V_SKIP)mkdir -p icons/hicolor/scalable/mimetypes \
1.35 + icons/hicolor/24x24/mimetypes icons/hicolor/48x48/mimetypes
1.36 + $(AM_V_GEN)cp $< $@
1.37 + $(AM_V_GEN)rsvg -w 24 -h 24 -f png $< \
1.38 + icons/hicolor/24x24/mimetypes/application-x-redhat-package-manager.png
1.39 + $(AM_V_GEN)rsvg -w 48 -h 48 -f png $< \
1.40 + icons/hicolor/48x48/mimetypes/application-x-redhat-package-manager.png
1.41 +
1.42 +endif
1.43 +
1.44 +@VALGRIND_CHECK_RULES@
1.45 +VALGRIND_SUPPRESSIONS_FILES = ../glib.supp
1.46 +
1.47 +clean-local:
1.48 + rm -rf icons razor-test-dir-* $(gui_tests:=.xvfb) .Xauthority