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
|
|
|
|
|
2013-05-28 22:08:42 +00:00
|
|
|
NULL =
|
2011-06-14 20:27:11 +00:00
|
|
|
|
2011-05-16 11:47:17 +00:00
|
|
|
AM_CPPFLAGS = \
|
2008-06-18 13:29:02 +00:00
|
|
|
-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 \
|
2008-06-18 13:29:02 +00:00
|
|
|
$(GTK_DEBUG_FLAGS) \
|
|
|
|
$(GTK_DEP_CFLAGS)
|
|
|
|
|
2013-03-26 15:02:25 +00:00
|
|
|
if OS_UNIX
|
|
|
|
AM_CPPFLAGS += -DHAVE_UNIX_PRINT_WIDGETS
|
|
|
|
endif
|
|
|
|
|
2008-06-18 13:29:02 +00:00
|
|
|
DEPS = \
|
2011-02-10 19:41:02 +00:00
|
|
|
$(top_builddir)/gtk/libgtk-3.la
|
2008-06-18 13:29:02 +00:00
|
|
|
|
2013-06-15 18:23:22 +00:00
|
|
|
LDADD = \
|
2011-02-10 19:41:02 +00:00
|
|
|
$(top_builddir)/gtk/libgtk-3.la \
|
|
|
|
$(top_builddir)/gdk/libgdk-3.la \
|
2009-12-19 17:37:39 +00:00
|
|
|
$(GTK_DEP_LIBS)
|
2007-11-20 15:03:28 +00:00
|
|
|
|
2011-01-06 06:09:14 +00:00
|
|
|
noinst_PROGRAMS = $(TEST_PROGS)
|
2007-11-20 15:03:28 +00:00
|
|
|
|
2015-03-13 21:40:50 +00:00
|
|
|
TESTS_ENVIRONMENT = \
|
|
|
|
G_ENABLE_DIAGNOSTIC=0 \
|
|
|
|
GIO_USE_VFS=local \
|
|
|
|
GSETTINGS_BACKEND=memory
|
2014-06-25 20:23:57 +00:00
|
|
|
|
2013-06-15 18:23:22 +00:00
|
|
|
TEST_PROGS += \
|
|
|
|
accel \
|
|
|
|
accessible \
|
|
|
|
action \
|
2014-07-22 22:32:02 +00:00
|
|
|
adjustment \
|
2013-06-15 18:23:22 +00:00
|
|
|
bitmask \
|
|
|
|
builder \
|
2014-10-19 02:12:54 +00:00
|
|
|
builderparser \
|
2013-06-15 18:23:22 +00:00
|
|
|
cellarea \
|
2014-05-23 14:35:08 +00:00
|
|
|
check-icon-names \
|
2013-08-23 11:00:37 +00:00
|
|
|
clipboard \
|
2013-06-15 23:46:51 +00:00
|
|
|
defaultvalue \
|
2013-06-15 18:23:22 +00:00
|
|
|
entry \
|
|
|
|
expander \
|
2014-02-18 12:48:13 +00:00
|
|
|
firefox-stylecontext \
|
2013-06-15 18:23:22 +00:00
|
|
|
floating \
|
2014-08-02 09:17:18 +00:00
|
|
|
focus \
|
2014-05-27 23:15:40 +00:00
|
|
|
gestures \
|
2013-06-15 18:23:22 +00:00
|
|
|
grid \
|
|
|
|
gtkmenu \
|
2014-05-12 16:19:47 +00:00
|
|
|
icontheme \
|
2013-06-15 18:23:22 +00:00
|
|
|
keyhash \
|
2013-06-15 20:02:16 +00:00
|
|
|
listbox \
|
2014-06-09 16:47:45 +00:00
|
|
|
notify \
|
2013-09-24 13:53:34 +00:00
|
|
|
no-gtk-init \
|
2013-06-15 23:46:51 +00:00
|
|
|
object \
|
2013-06-15 18:23:22 +00:00
|
|
|
objects-finalize \
|
|
|
|
papersize \
|
|
|
|
rbtree \
|
|
|
|
recentmanager \
|
|
|
|
regression-tests \
|
2014-08-14 04:04:10 +00:00
|
|
|
spinbutton \
|
2013-06-15 18:23:22 +00:00
|
|
|
stylecontext \
|
|
|
|
templates \
|
|
|
|
textbuffer \
|
|
|
|
textiter \
|
|
|
|
treemodel \
|
|
|
|
treepath \
|
|
|
|
treeview \
|
2014-09-27 03:29:38 +00:00
|
|
|
typename \
|
2013-06-15 18:23:22 +00:00
|
|
|
window \
|
2013-06-29 23:24:22 +00:00
|
|
|
displayclose \
|
2013-06-15 18:23:22 +00:00
|
|
|
$(NULL)
|
2007-11-20 15:03:28 +00:00
|
|
|
|
2013-06-15 18:23:22 +00:00
|
|
|
if OS_UNIX
|
|
|
|
#TEST_PROGS += defaultvalue
|
|
|
|
endif
|
2009-07-30 11:54:30 +00:00
|
|
|
|
2013-06-15 18:23:22 +00:00
|
|
|
#TEST_PROGS += testing
|
2013-05-17 18:49:20 +00:00
|
|
|
#TEST_PROGS += treeview-scrolling
|
2010-10-16 00:10:08 +00:00
|
|
|
#TEST_PROGS += object
|
2013-06-15 18:23:22 +00:00
|
|
|
#TEST_PROGS += filechooser
|
2007-12-13 12:59:01 +00:00
|
|
|
|
2008-08-04 23:41:19 +00:00
|
|
|
# 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
|
2008-08-01 03:30:50 +00:00
|
|
|
|
2013-06-15 18:23:22 +00:00
|
|
|
treemodel_SOURCES = \
|
|
|
|
treemodel.h \
|
|
|
|
treemodel.c \
|
|
|
|
liststore.c \
|
|
|
|
treestore.c \
|
|
|
|
filtermodel.c \
|
|
|
|
sortmodel.c \
|
|
|
|
modelrefcount.c \
|
|
|
|
gtktreemodelrefcount.h \
|
|
|
|
gtktreemodelrefcount.c \
|
|
|
|
$(NULL)
|
2007-12-13 12:59:01 +00:00
|
|
|
|
2013-06-15 18:23:22 +00:00
|
|
|
builder_LDFLAGS = -export-dynamic
|
2007-12-13 12:59:01 +00:00
|
|
|
|
2013-06-15 18:23:22 +00:00
|
|
|
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)
|
2013-03-21 08:54:16 +00:00
|
|
|
|
2008-06-17 13:37:59 +00:00
|
|
|
|
2014-05-12 16:19:47 +00:00
|
|
|
test_icontheme = \
|
2014-06-15 02:52:57 +00:00
|
|
|
icons/index.theme \
|
2014-05-12 16:19:47 +00:00
|
|
|
icons/16x16/simple.png \
|
2014-06-15 08:15:32 +00:00
|
|
|
icons/16x16/twosize-fixed.svg \
|
2014-06-15 09:24:39 +00:00
|
|
|
icons/16x16s/twosize.svg \
|
2014-06-12 10:28:07 +00:00
|
|
|
icons/32x32/only32-symbolic.svg \
|
2014-06-15 02:52:57 +00:00
|
|
|
icons/32x32/twosize-fixed.svg \
|
|
|
|
icons/32x32s/twosize.svg \
|
2014-05-13 01:17:15 +00:00
|
|
|
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 \
|
2014-05-13 01:17:15 +00:00
|
|
|
icons/scalable/everything-justsymbolic-symbolic.svg \
|
|
|
|
icons/scalable/everything.svg \
|
|
|
|
icons/scalable/everything-symbolic.svg \
|
2014-06-19 16:54:31 +00:00
|
|
|
icons/15/size-test.png \
|
|
|
|
icons/16-22/size-test.png \
|
|
|
|
icons/25+/size-test.svg \
|
|
|
|
icons/35+/size-test.svg \
|
2014-09-21 20:28:15 +00:00
|
|
|
icons/scalable/one-two.svg \
|
|
|
|
icons/scalable/one-two-rtl.svg \
|
|
|
|
icons2/scalable/one-two-three-symbolic.svg \
|
|
|
|
icons2/scalable/one-two-symbolic.svg \
|
|
|
|
icons2/scalable/one-two-symbolic-rtl.svg \
|
|
|
|
icons2/index.theme \
|
2014-05-12 16:19:47 +00:00
|
|
|
$(NULL)
|
2013-04-27 17:34:18 +00:00
|
|
|
|
2014-10-19 02:12:54 +00:00
|
|
|
test_ui = \
|
2014-11-04 00:01:57 +00:00
|
|
|
ui/test1.ui ui/test1.expected \
|
|
|
|
ui/test2.ui ui/test2.expected \
|
|
|
|
ui/test3.ui ui/test3.expected \
|
|
|
|
ui/test4.ui ui/test4.expected \
|
|
|
|
ui/test5.ui ui/test5.expected \
|
|
|
|
ui/test6.ui ui/test6.expected \
|
|
|
|
ui/test7.ui ui/test7.expected \
|
2015-04-22 15:59:12 +00:00
|
|
|
ui/label1.ui ui/label1.expected \
|
|
|
|
ui/label2.ui ui/label2.expected \
|
|
|
|
ui/label3.ui ui/label3.expected \
|
|
|
|
ui/label4.ui ui/label4.expected \
|
|
|
|
ui/label5.ui ui/label5.expected \
|
2015-04-25 01:21:05 +00:00
|
|
|
ui/celllayout1.ui ui/celllayout1.expected \
|
|
|
|
ui/celllayout2.ui ui/celllayout2.expected \
|
|
|
|
ui/celllayout3.ui ui/celllayout3.expected \
|
|
|
|
ui/celllayout4.ui ui/celllayout4.expected \
|
|
|
|
ui/celllayout5.ui ui/celllayout5.expected \
|
|
|
|
ui/celllayout6.ui ui/celllayout6.expected \
|
|
|
|
ui/celllayout7.ui ui/celllayout7.expected \
|
2015-04-25 15:24:40 +00:00
|
|
|
ui/scale1.ui ui/scale1.expected \
|
|
|
|
ui/scale2.ui ui/scale2.expected \
|
|
|
|
ui/scale3.ui ui/scale3.expected \
|
|
|
|
ui/scale4.ui ui/scale4.expected \
|
|
|
|
ui/scale5.ui ui/scale5.expected \
|
|
|
|
ui/scale6.ui ui/scale6.expected \
|
|
|
|
ui/scale7.ui ui/scale7.expected \
|
2015-04-26 15:45:21 +00:00
|
|
|
ui/levelbar1.ui ui/levelbar1.expected \
|
|
|
|
ui/levelbar2.ui ui/levelbar2.expected \
|
|
|
|
ui/levelbar3.ui ui/levelbar3.expected \
|
|
|
|
ui/levelbar4.ui ui/levelbar4.expected \
|
|
|
|
ui/levelbar5.ui ui/levelbar5.expected \
|
|
|
|
ui/levelbar6.ui ui/levelbar6.expected \
|
2015-04-26 19:03:03 +00:00
|
|
|
ui/dialog1.ui ui/dialog1.expected \
|
|
|
|
ui/dialog2.ui ui/dialog2.expected \
|
|
|
|
ui/dialog3.ui ui/dialog3.expected \
|
|
|
|
ui/dialog4.ui ui/dialog4.expected \
|
|
|
|
ui/dialog5.ui ui/dialog5.expected \
|
2015-04-26 19:24:11 +00:00
|
|
|
ui/filefilter1.ui ui/filefilter1.expected \
|
|
|
|
ui/filefilter2.ui ui/filefilter2.expected \
|
|
|
|
ui/filefilter3.ui ui/filefilter3.expected \
|
|
|
|
ui/filefilter4.ui ui/filefilter4.expected \
|
|
|
|
ui/filefilter5.ui ui/filefilter5.expected \
|
|
|
|
ui/filefilter6.ui ui/filefilter6.expected \
|
|
|
|
ui/filefilter7.ui ui/filefilter7.expected \
|
|
|
|
ui/filefilter8.ui ui/filefilter8.expected \
|
|
|
|
ui/filefilter9.ui ui/filefilter9.expected \
|
|
|
|
ui/filefilter10.ui ui/filefilter10.expected \
|
2015-04-27 03:03:05 +00:00
|
|
|
ui/infobar1.ui ui/infobar1.expected \
|
|
|
|
ui/infobar2.ui ui/infobar2.expected \
|
|
|
|
ui/infobar3.ui ui/infobar3.expected \
|
|
|
|
ui/infobar4.ui ui/infobar4.expected \
|
|
|
|
ui/infobar5.ui ui/infobar5.expected \
|
2014-10-19 02:12:54 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2010-05-11 03:57:24 +00:00
|
|
|
EXTRA_DIST += \
|
2010-05-10 22:50:54 +00:00
|
|
|
file-chooser-test-dir/empty \
|
2013-05-28 22:08:42 +00:00
|
|
|
file-chooser-test-dir/text.txt \
|
2014-05-12 16:19:47 +00:00
|
|
|
$(test_icontheme) \
|
2014-10-19 02:12:54 +00:00
|
|
|
$(test_ui) \
|
2013-05-28 22:08:42 +00:00
|
|
|
$(NULL)
|
2010-05-10 22:50:54 +00:00
|
|
|
|
2013-11-09 00:15:33 +00:00
|
|
|
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
|
|
|
|
|
2013-11-09 00:15:33 +00:00
|
|
|
gschemas.compiled: $(GTK_GSETTINGS_SCHEMAS)
|
2014-12-01 00:58:34 +00:00
|
|
|
$(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) \
|
2013-11-09 00:15:33 +00:00
|
|
|
$(addprefix --schema-file=,$(GTK_GSETTINGS_SCHEMAS)) \
|
|
|
|
--targetdir=$(builddir)
|
|
|
|
|
|
|
|
all-am: gschemas.compiled
|
|
|
|
|
2013-05-16 17:44:23 +00:00
|
|
|
if BUILDOPT_INSTALL_TESTS
|
2014-05-31 04:16:07 +00:00
|
|
|
insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)
|
2013-05-16 17:44:23 +00:00
|
|
|
insttest_PROGRAMS = $(TEST_PROGS)
|
2014-10-19 02:12:54 +00:00
|
|
|
nobase_insttest_DATA = $(test_icontheme) $(test_ui)
|
2013-05-16 17:44:23 +00:00
|
|
|
|
2013-06-15 18:23:22 +00:00
|
|
|
%.test: %$(EXEEXT) Makefile
|
|
|
|
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
|
|
|
|
echo 'Type=session' >> $@.tmp; \
|
2014-06-28 04:41:26 +00:00
|
|
|
echo 'Exec=env G_ENABLE_DIAGNOSTIC=0 $(insttestdir)/$<' >> $@.tmp; \
|
2013-06-15 18:23:22 +00:00
|
|
|
mv $@.tmp $@)
|
2013-05-16 17:44:23 +00:00
|
|
|
|
2013-06-15 18:23:22 +00:00
|
|
|
test_files = $(TEST_PROGS:=.test)
|
2013-05-16 17:44:23 +00:00
|
|
|
|
2013-07-11 16:57:06 +00:00
|
|
|
DISTCLEANFILES = $(test_files)
|
|
|
|
|
2013-05-16 17:44:23 +00:00
|
|
|
testmetadir = $(datadir)/installed-tests/$(PACKAGE)
|
|
|
|
testmeta_DATA = $(test_files)
|
|
|
|
endif
|
|
|
|
|
2009-05-04 00:08:11 +00:00
|
|
|
-include $(top_srcdir)/git.mk
|