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
|
|
|
|
|
2011-06-17 02:40:21 +00:00
|
|
|
SUBDIRS =
|
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 \
|
2010-12-06 19:11:46 +00:00
|
|
|
-DSRCDIR=\""$(abs_srcdir)"\" \
|
2008-06-18 13:29:02 +00:00
|
|
|
$(GTK_DEBUG_FLAGS) \
|
|
|
|
$(GTK_DEP_CFLAGS)
|
|
|
|
|
|
|
|
DEPS = \
|
2011-02-10 19:41:02 +00:00
|
|
|
$(top_builddir)/gtk/libgtk-3.la
|
2008-06-18 13:29:02 +00:00
|
|
|
|
|
|
|
progs_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
|
|
|
|
|
|
|
|
2008-06-18 13:29:02 +00:00
|
|
|
TEST_PROGS += testing
|
|
|
|
testing_SOURCES = testing.c
|
|
|
|
testing_LDADD = $(progs_ldadd)
|
|
|
|
|
2011-05-09 06:25:27 +00:00
|
|
|
TEST_PROGS += treemodel
|
2011-08-30 00:31:56 +00:00
|
|
|
treemodel_SOURCES = \
|
|
|
|
treemodel.h \
|
|
|
|
treemodel.c \
|
|
|
|
liststore.c \
|
|
|
|
treestore.c \
|
|
|
|
filtermodel.c \
|
|
|
|
sortmodel.c \
|
|
|
|
modelrefcount.c \
|
|
|
|
gtktreemodelrefcount.h \
|
|
|
|
gtktreemodelrefcount.c
|
2011-05-09 06:25:27 +00:00
|
|
|
treemodel_LDADD = $(progs_ldadd)
|
2008-06-18 13:29:02 +00:00
|
|
|
|
2009-07-30 11:54:30 +00:00
|
|
|
TEST_PROGS += treeview
|
|
|
|
treeview_SOURCES = treeview.c
|
|
|
|
treeview_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-10-18 04:21:39 +00:00
|
|
|
TEST_PROGS += treeview-scrolling
|
2008-06-18 13:29:02 +00:00
|
|
|
treeview_scrolling_SOURCES = treeview-scrolling.c
|
2011-08-27 21:22:37 +00:00
|
|
|
treeview_scrolling_LDADD = $(progs_ldadd) -lm
|
2008-06-18 13:29:02 +00:00
|
|
|
|
|
|
|
TEST_PROGS += recentmanager
|
|
|
|
recentmanager_SOURCES = recentmanager.c
|
|
|
|
recentmanager_LDADD = $(progs_ldadd)
|
|
|
|
|
|
|
|
TEST_PROGS += floating
|
|
|
|
floating_SOURCES = floating.c
|
|
|
|
floating_LDADD = $(progs_ldadd)
|
|
|
|
|
2011-11-16 15:02:06 +00:00
|
|
|
TEST_PROGS += accel
|
|
|
|
accel_SOURCES = accel.c
|
|
|
|
accel_LDADD = $(progs_ldadd)
|
2011-11-03 18:53:19 +00:00
|
|
|
|
2010-10-16 00:10:08 +00:00
|
|
|
#TEST_PROGS += object
|
2010-11-19 00:18:09 +00:00
|
|
|
#object_SOURCES = object.c pixbuf-init.c
|
|
|
|
#object_LDADD = $(progs_ldadd)
|
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
|
2011-01-03 15:55:23 +00:00
|
|
|
#crossingevents_SOURCES = crossingevents.c
|
|
|
|
#crossingevents_LDADD = $(progs_ldadd)
|
2008-08-01 03:30:50 +00:00
|
|
|
|
2010-05-10 22:50:54 +00:00
|
|
|
# Should be ported to new API's
|
|
|
|
#TEST_PROGS += filechooser
|
|
|
|
#filechooser_SOURCES = filechooser.c pixbuf-init.c
|
|
|
|
#filechooser_LDADD = $(progs_ldadd)
|
2007-12-13 12:59:01 +00:00
|
|
|
|
2008-06-18 13:29:02 +00:00
|
|
|
TEST_PROGS += builder
|
|
|
|
builder_SOURCES = builder.c
|
|
|
|
builder_LDADD = $(progs_ldadd)
|
|
|
|
builder_LDFLAGS = -export-dynamic
|
2007-12-13 12:59:01 +00:00
|
|
|
|
2008-06-18 13:29:02 +00:00
|
|
|
if OS_UNIX
|
2010-10-16 00:10:08 +00:00
|
|
|
#TEST_PROGS += defaultvalue
|
2011-01-03 15:55:23 +00:00
|
|
|
#defaultvalue_SOURCES = defaultvalue.c pixbuf-init.c
|
|
|
|
#defaultvalue_LDADD = $(progs_ldadd)
|
2008-06-18 13:29:02 +00:00
|
|
|
endif
|
2008-06-17 13:37:59 +00:00
|
|
|
|
2008-06-18 13:29:02 +00:00
|
|
|
TEST_PROGS += textbuffer
|
|
|
|
textbuffer_SOURCES = textbuffer.c pixbuf-init.c
|
|
|
|
textbuffer_LDADD = $(progs_ldadd)
|
2009-05-04 00:08:11 +00:00
|
|
|
|
2010-10-30 16:19:59 +00:00
|
|
|
TEST_PROGS += textiter
|
|
|
|
textiter_SOURCES = textiter.c
|
|
|
|
textiter_LDADD = $(progs_ldadd)
|
|
|
|
|
2009-09-06 14:09:17 +00:00
|
|
|
TEST_PROGS += expander
|
|
|
|
expander_SOURCES = expander.c
|
2011-01-13 03:30:08 +00:00
|
|
|
expander_LDADD = $(progs_ldadd)
|
2009-09-06 14:09:17 +00:00
|
|
|
|
2010-03-11 14:40:55 +00:00
|
|
|
TEST_PROGS += action
|
|
|
|
action_SOURCES = action.c
|
|
|
|
action_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-11-18 07:00:53 +00:00
|
|
|
TEST_PROGS += stylecontext
|
|
|
|
stylecontext_SOURCES = stylecontext.c
|
|
|
|
stylecontext_LDADD = $(progs_ldadd)
|
|
|
|
|
2011-01-13 03:30:08 +00:00
|
|
|
TEST_PROGS += papersize
|
|
|
|
papersize_SOURCES = papersize.c
|
|
|
|
papersize_LDADD = $(progs_ldadd)
|
2010-05-10 22:50:54 +00:00
|
|
|
|
2011-01-31 22:34:37 +00:00
|
|
|
TEST_PROGS += cellarea
|
|
|
|
cellarea_SOURCES = cellarea.c
|
|
|
|
cellarea_LDADD = $(progs_ldadd)
|
|
|
|
|
2011-06-01 02:10:40 +00:00
|
|
|
TEST_PROGS += treepath
|
|
|
|
treepath_SOURCES = treepath.c
|
|
|
|
treepath_LDADD = $(progs_ldadd)
|
|
|
|
|
2011-06-17 03:13:38 +00:00
|
|
|
TEST_PROGS += accessible
|
|
|
|
accessible_SOURCES = accessible.c
|
|
|
|
accessible_LDADD = $(progs_ldadd)
|
|
|
|
|
2011-06-25 22:47:51 +00:00
|
|
|
TEST_PROGS += entry
|
|
|
|
entry_SOURCES = entry.c
|
|
|
|
entry_LDADD = $(progs_ldadd)
|
|
|
|
|
2011-09-03 00:04:06 +00:00
|
|
|
TEST_PROGS += grid
|
|
|
|
grid_SOURCES = grid.c
|
|
|
|
grid_LDADD = $(progs_ldadd)
|
|
|
|
|
2011-11-21 21:26:42 +00:00
|
|
|
TEST_PROGS += rbtree
|
|
|
|
rbtree_CFLAGS = -DGTK_COMPILATION -UG_ENABLE_DEBUG
|
|
|
|
rbtree_SOURCES = rbtree.c ../gtkrbtree.h ../gtkrbtree.c
|
|
|
|
rbtree_LDADD = $(GTK_DEP_LIBS)
|
|
|
|
|
2011-12-23 21:29:34 +00:00
|
|
|
TEST_PROGS += bitmask
|
|
|
|
bitmask_CFLAGS = -DGTK_COMPILATION -UG_ENABLE_DEBUG
|
2012-02-09 00:44:59 +00:00
|
|
|
bitmask_SOURCES = bitmask.c \
|
|
|
|
../gtkbitmaskprivate.h \
|
|
|
|
../gtkallocatedbitmaskprivate.h \
|
|
|
|
../gtkallocatedbitmask.c
|
2011-12-23 21:29:34 +00:00
|
|
|
bitmask_LDADD = $(GTK_DEP_LIBS)
|
|
|
|
|
2011-12-16 02:12:39 +00:00
|
|
|
TEST_PROGS += regression-tests
|
|
|
|
regression_tests_SOURCES = regression-tests.c
|
|
|
|
regression_tests_LDADD = $(progs_ldadd)
|
|
|
|
|
2012-04-22 05:32:20 +00:00
|
|
|
TEST_PROGS += keyhash
|
|
|
|
keyhash_SOURCES = keyhash.c \
|
|
|
|
../gtkkeyhash.c ../gtkkeyhash.h \
|
|
|
|
../gtkprivate.c ../gtkprivate.h
|
|
|
|
keyhash_LDADD = $(progs_ldadd)
|
|
|
|
keyhash_CFLAGS = -DGTK_COMPILATION \
|
|
|
|
-DGTK_LIBDIR=\"$(libdir)\" \
|
|
|
|
-DGTK_DATADIR=\"$(datadir)\" \
|
|
|
|
-DGTK_DATA_PREFIX=\"$(prefix)\" \
|
|
|
|
-DGTK_SYSCONFDIR=\"$(sysconfdir)\"
|
|
|
|
|
2010-05-11 03:57:24 +00:00
|
|
|
EXTRA_DIST += \
|
2010-05-10 22:50:54 +00:00
|
|
|
file-chooser-test-dir/empty \
|
|
|
|
file-chooser-test-dir/text.txt
|
|
|
|
|
2009-05-04 00:08:11 +00:00
|
|
|
-include $(top_srcdir)/git.mk
|