gtk2/testsuite/gtk/Makefile.am

184 lines
3.9 KiB
Makefile
Raw Normal View History

call g_test_init() from gtk_test_init(). 2007-11-22 15:39:40 Tim Janik <timj@imendio.com> * gtk/gtktestutils.c: call g_test_init() from gtk_test_init(). * gtk/tests/testing.c: use g_test_add_func() to register tests and use g_test_run() to run the tests to integrate with the testing framework. * gtk/tests/Makefile.am: removed exemplary testing rules. * Makefile.am, gtk/tests/Makefile.am, gtk/Makefile.am: * gtk/xdgmime/Makefile.am, gtk/theme-bits/Makefile.am: * tests/Makefile.am, docs/reference/gdk-pixbuf/Makefile.am: * docs/reference/gdk/Makefile.am, docs/reference/gtk/Makefile.am: * docs/reference/Makefile.am, docs/tools/Makefile.am: * docs/tutorial/Makefile.am, docs/faq/Makefile.am, docs/Makefile.am: * gdk-pixbuf/pixops/Makefile.am, gdk-pixbuf/Makefile.am: * demos/gtk-demo/Makefile.am, demos/Makefile.am: * modules/input/Makefile.am, modules/printbackends/file/Makefile.am: * modules/printbackends/test/Makefile.am, modules/printbackends/Makefile.am: * modules/printbackends/cups/Makefile.am, modules/printbackends/lpr/Makefile.am: * modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am: * modules/engines/ms-windows/Theme/Makefile.am: * modules/engines/ms-windows/Makefile.am: * modules/engines/Makefile.am, modules/engines/pixbuf/Makefile.am: * modules/Makefile.am, m4macros/Makefile.am, perf/Makefile.am: * contrib/Makefile.am, contrib/gdk-pixbuf-xlib/Makefile.am: * gdk/directfb/Makefile.am, gdk/linux-fb/Makefile.am: * gdk/quartz/Makefile.am, gdk/win32/rc/Makefile.am: * gdk/win32/Makefile.am, gdk/x11/Makefile.am, gdk/Makefile.am: include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments. svn path=/trunk/; revision=19033
2007-11-22 14:38:26 +00:00
include $(top_srcdir)/Makefile.decl
NULL =
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir)/gdk \
-I$(top_srcdir)/gdk \
2013-04-08 14:16:58 +00:00
-I$(top_builddir)/gtk \
-I$(top_srcdir)/gtk \
$(GTK_DEBUG_FLAGS) \
$(GTK_DEP_CFLAGS)
if OS_UNIX
AM_CPPFLAGS += -DHAVE_UNIX_PRINT_WIDGETS
endif
DEPS = \
$(top_builddir)/gtk/libgtk-3.la
LDADD = \
$(top_builddir)/gtk/libgtk-3.la \
$(top_builddir)/gdk/libgdk-3.la \
$(GTK_DEP_LIBS)
noinst_PROGRAMS = $(TEST_PROGS)
TEST_PROGS += \
accel \
accessible \
action \
bitmask \
builder \
cellarea \
check-icon-names \
clipboard \
defaultvalue \
entry \
expander \
firefox-stylecontext \
floating \
gestures \
grid \
gtkmenu \
icontheme \
keyhash \
2013-06-15 20:02:16 +00:00
listbox \
no-gtk-init \
object \
objects-finalize \
papersize \
rbtree \
recentmanager \
regression-tests \
stylecontext \
templates \
textbuffer \
textiter \
treemodel \
treepath \
treeview \
window \
displayclose \
$(NULL)
if OS_UNIX
#TEST_PROGS += defaultvalue
endif
#TEST_PROGS += testing
#TEST_PROGS += treeview-scrolling
#TEST_PROGS += object
#TEST_PROGS += filechooser
# this doesn't work in make distcheck, since running
# on a naked X server creates slightly different event
# sequences than running on a normal desktop
# TEST_PROGS += crossingevents
treemodel_SOURCES = \
treemodel.h \
treemodel.c \
liststore.c \
treestore.c \
filtermodel.c \
sortmodel.c \
modelrefcount.c \
gtktreemodelrefcount.h \
gtktreemodelrefcount.c \
$(NULL)
builder_LDFLAGS = -export-dynamic
rbtree_CFLAGS = -DGTK_COMPILATION -UG_ENABLE_DEBUG
rbtree_LDADD = $(GTK_DEP_LIBS)
rbtree_SOURCES = \
rbtree.c \
$(top_srcdir)/gtk/gtkrbtree.h \
$(top_srcdir)/gtk/gtkrbtree.c \
$(NULL)
bitmask_CFLAGS = -DGTK_COMPILATION -UG_ENABLE_DEBUG
bitmask_LDADD = $(GTK_DEP_LIBS)
bitmask_SOURCES = \
bitmask.c \
$(top_srcdir)/gtk/gtkbitmaskprivate.h \
$(top_srcdir)/gtk/gtkallocatedbitmaskprivate.h \
$(top_srcdir)/gtk/gtkallocatedbitmask.c \
$(NULL)
keyhash_CFLAGS = \
-DGTK_COMPILATION \
-DGTK_LIBDIR=\"$(libdir)\" \
-DGTK_DATADIR=\"$(datadir)\" \
-DGTK_DATA_PREFIX=\"$(prefix)\" \
-DGTK_SYSCONFDIR=\"$(sysconfdir)\" \
$(NULL)
keyhash_SOURCES = \
keyhash.c \
$(top_srcdir)/gtk/gtkkeyhash.c \
$(top_srcdir)/gtk/gtkkeyhash.h \
$(top_builddir)/gtk/gtkresources.c \
$(top_builddir)/gtk/gtkresources.h \
$(top_srcdir)/gtk/gtkprivate.c \
$(top_srcdir)/gtk/gtkprivate.h \
$(NULL)
test_icontheme = \
icons/16x16/simple.png \
icons/index.theme \
icons/scalable/everything-justregular.svg \
2014-05-14 02:52:55 +00:00
icons/scalable/everything-justrtl-rtl.svg \
icons/scalable/everything-rtl.svg \
icons/scalable/everything-symbolic-rtl.svg \
icons/scalable/everything-justsymbolic-symbolic.svg \
icons/scalable/everything.svg \
icons/scalable/everything-symbolic.svg \
$(NULL)
2010-05-11 03:57:24 +00:00
EXTRA_DIST += \
file-chooser-test-dir/empty \
file-chooser-test-dir/text.txt \
$(test_icontheme) \
$(NULL)
GTK_GSETTINGS_SCHEMAS = \
$(top_srcdir)/gtk/org.gtk.Settings.ColorChooser.gschema.xml \
$(top_srcdir)/gtk/org.gtk.Settings.FileChooser.gschema.xml \
$(NULL)
BUILT_SOURCES = gschemas.compiled
2013-12-05 05:48:08 +00:00
CLEANFILES = gschemas.compiled
gschemas.compiled: $(GTK_GSETTINGS_SCHEMAS)
$(GLIB_COMPILE_SCHEMAS) \
$(addprefix --schema-file=,$(GTK_GSETTINGS_SCHEMAS)) \
--targetdir=$(builddir)
all-am: gschemas.compiled
2013-05-16 17:44:23 +00:00
if BUILDOPT_INSTALL_TESTS
insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)
2013-05-16 17:44:23 +00:00
insttest_PROGRAMS = $(TEST_PROGS)
nobase_insttest_DATA = $(test_icontheme)
2013-05-16 17:44:23 +00:00
%.test: %$(EXEEXT) Makefile
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
echo 'Type=session' >> $@.tmp; \
echo 'Exec=$(insttestdir)/$<' >> $@.tmp; \
mv $@.tmp $@)
2013-05-16 17:44:23 +00:00
test_files = $(TEST_PROGS:=.test)
2013-05-16 17:44:23 +00:00
DISTCLEANFILES = $(test_files)
2013-05-16 17:44:23 +00:00
testmetadir = $(datadir)/installed-tests/$(PACKAGE)
testmeta_DATA = $(test_files)
endif
-include $(top_srcdir)/git.mk