2011-09-12 19:24:24 +02:00
|
|
|
|
2010-05-06 20:13:59 +02:00
|
|
|
NULL =
|
2011-04-11 22:35:14 +02:00
|
|
|
BUILT_SOURCES =
|
2010-05-06 20:13:59 +02:00
|
|
|
|
2008-01-07 07:14:40 +01:00
|
|
|
include $(top_srcdir)/Makefile.decl
|
|
|
|
|
2013-05-20 12:38:41 +02:00
|
|
|
insttestdir = $(pkglibexecdir)/installed-tests
|
|
|
|
|
2013-01-04 20:37:27 +01:00
|
|
|
SUBDIRS = gdbus-object-manager-example services
|
2011-06-03 19:22:31 +02:00
|
|
|
|
2013-02-03 04:54:15 +01:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-DG_LOG_DOMAIN=\"GLib-GIO\" \
|
|
|
|
$(gio_INCLUDES) \
|
|
|
|
$(GLIB_DEBUG_FLAGS) \
|
|
|
|
-I$(top_builddir)/gio \
|
|
|
|
-I$(top_srcdir)/gio \
|
|
|
|
$(DBUS1_CFLAGS) \
|
|
|
|
-DSRCDIR=\""$(srcdir)"\" \
|
2012-12-20 07:34:22 +01:00
|
|
|
-DTEST_SERVICES=\""$(abs_top_builddir)/gio/tests/services"\"
|
|
|
|
|
2013-02-26 17:19:51 +01:00
|
|
|
AM_CFLAGS = $(GLIB_WARN_CFLAGS)
|
2008-01-07 07:14:40 +01:00
|
|
|
|
2010-04-19 11:25:22 +02:00
|
|
|
noinst_PROGRAMS = $(TEST_PROGS) $(SAMPLE_PROGS)
|
|
|
|
noinst_DATA = $(MISC_STUFF)
|
|
|
|
|
2012-10-26 10:42:17 +02:00
|
|
|
LDADD = \
|
2008-01-07 07:14:40 +01:00
|
|
|
$(top_builddir)/glib/libglib-2.0.la \
|
2010-05-15 10:17:35 +02:00
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la \
|
2008-01-07 07:14:40 +01:00
|
|
|
$(top_builddir)/gobject/libgobject-2.0.la \
|
2012-01-13 22:35:44 +01:00
|
|
|
$(top_builddir)/gmodule/libgmodule-2.0.la \
|
2008-01-07 07:14:40 +01:00
|
|
|
$(top_builddir)/gio/libgio-2.0.la
|
|
|
|
|
2013-05-20 12:38:41 +02:00
|
|
|
test_progs = \
|
2010-08-13 10:10:48 +02:00
|
|
|
io-stream \
|
2008-06-30 05:47:27 +02:00
|
|
|
memory-input-stream \
|
|
|
|
memory-output-stream \
|
2009-05-13 13:06:58 +02:00
|
|
|
readwrite \
|
2008-06-30 05:47:27 +02:00
|
|
|
g-file \
|
|
|
|
g-file-info \
|
2009-10-23 19:59:03 +02:00
|
|
|
converter-stream \
|
2008-06-30 05:47:27 +02:00
|
|
|
data-input-stream \
|
2008-10-21 13:51:48 +02:00
|
|
|
data-output-stream \
|
2008-11-28 06:57:07 +01:00
|
|
|
g-icon \
|
2009-01-05 07:58:22 +01:00
|
|
|
buffered-input-stream \
|
2010-07-05 17:12:49 +02:00
|
|
|
buffered-output-stream \
|
2009-01-28 17:39:39 +01:00
|
|
|
sleepy-stream \
|
2009-01-21 15:09:56 +01:00
|
|
|
filter-streams \
|
2010-07-26 23:59:18 +02:00
|
|
|
volumemonitor \
|
Fix multiple bugs in g_srv_target_list_sort()
In particular, targets with weight 0 should be very UNlikely to be
selected, not very likely, as they were before. However, even ignoring
that bug in the logic, there was an additional bug (swapping list
items would cause the 0-weight items to get re-ordered incorrectly
anyway), and the code contained several fencepost errors.
This patch also adds gio/tests/srvtarget.c, which confirms that for a
sample list of targets, we now generate all possible correct random
sortings and no incorrect sortings, and the correct sortings occur in
roughly the expected proportions (though if the current code is
still wrong, those proportions may be wrong as well).
http://bugzilla.gnome.org/show_bug.cgi?id=583398
2009-05-28 21:27:04 +02:00
|
|
|
simple-async-result \
|
2009-06-17 02:22:58 +02:00
|
|
|
srvtarget \
|
2010-04-17 07:43:58 +02:00
|
|
|
contexts \
|
2010-04-19 17:31:21 +02:00
|
|
|
gsettings \
|
2010-05-07 11:55:40 +02:00
|
|
|
gschema-compile \
|
2010-05-14 05:08:34 +02:00
|
|
|
async-close-output-stream \
|
2010-05-06 20:13:59 +02:00
|
|
|
gdbus-addresses \
|
2010-07-27 01:07:16 +02:00
|
|
|
network-address \
|
2010-09-09 17:37:14 +02:00
|
|
|
gdbus-message \
|
2010-08-18 00:34:13 +02:00
|
|
|
socket \
|
2010-09-18 19:05:25 +02:00
|
|
|
pollable \
|
2011-10-16 20:34:16 +02:00
|
|
|
tls-certificate \
|
|
|
|
tls-interaction \
|
2011-08-12 11:49:31 +02:00
|
|
|
cancellable \
|
2011-10-16 20:34:16 +02:00
|
|
|
vfs \
|
2011-06-12 21:59:36 +02:00
|
|
|
network-monitor \
|
2011-11-01 19:12:17 +01:00
|
|
|
fileattributematcher \
|
2011-12-21 21:45:16 +01:00
|
|
|
resources \
|
2012-04-22 21:18:50 +02:00
|
|
|
proxy-test \
|
2013-01-26 15:54:03 +01:00
|
|
|
simple-proxy \
|
2012-08-19 08:22:59 +02:00
|
|
|
inet-address \
|
2012-08-19 08:22:33 +02:00
|
|
|
permission \
|
2011-10-05 16:05:50 +02:00
|
|
|
task \
|
2012-11-08 15:08:44 +01:00
|
|
|
credentials \
|
2010-05-24 10:22:41 +02:00
|
|
|
$(NULL)
|
|
|
|
|
2013-05-20 12:38:41 +02:00
|
|
|
TEST_PROGS += $(test_progs)
|
|
|
|
|
2012-04-19 18:12:23 +02:00
|
|
|
if HAVE_DBUS_DAEMON
|
2010-05-24 10:22:41 +02:00
|
|
|
TEST_PROGS += \
|
2012-03-20 10:18:32 +01:00
|
|
|
actions \
|
2010-05-06 20:13:59 +02:00
|
|
|
gdbus-connection \
|
2011-10-07 20:20:03 +02:00
|
|
|
gdbus-connection-loss \
|
2010-09-23 21:47:46 +02:00
|
|
|
gdbus-connection-slow \
|
2010-05-06 20:13:59 +02:00
|
|
|
gdbus-names \
|
|
|
|
gdbus-proxy \
|
2011-08-15 17:00:51 +02:00
|
|
|
gdbus-proxy-threads \
|
2010-06-11 21:45:18 +02:00
|
|
|
gdbus-proxy-well-known-name \
|
2010-05-06 20:13:59 +02:00
|
|
|
gdbus-introspection \
|
|
|
|
gdbus-threading \
|
|
|
|
gdbus-export \
|
|
|
|
gdbus-error \
|
2012-04-19 18:12:23 +02:00
|
|
|
gdbus-bz627724 \
|
|
|
|
gmenumodel \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
if OS_UNIX
|
|
|
|
TEST_PROGS += \
|
|
|
|
gdbus-close-pending \
|
|
|
|
gdbus-connection-flush \
|
2010-05-06 20:13:59 +02:00
|
|
|
gdbus-peer \
|
|
|
|
gdbus-exit-on-close \
|
2010-08-13 19:58:27 +02:00
|
|
|
gdbus-non-socket \
|
2012-10-26 10:30:29 +02:00
|
|
|
gdbus-peer-object-manager \
|
2010-06-07 19:25:39 +02:00
|
|
|
appinfo \
|
2010-07-05 05:40:42 +02:00
|
|
|
contenttype \
|
2011-09-10 05:43:02 +02:00
|
|
|
mimeapps \
|
2010-07-05 09:09:36 +02:00
|
|
|
file \
|
2010-05-06 20:13:59 +02:00
|
|
|
$(NULL)
|
2010-05-24 10:22:41 +02:00
|
|
|
endif
|
2010-05-06 20:13:59 +02:00
|
|
|
|
|
|
|
SAMPLE_PROGS = \
|
|
|
|
resolver \
|
|
|
|
socket-server \
|
|
|
|
socket-client \
|
|
|
|
echo-server \
|
|
|
|
httpd \
|
|
|
|
send-data \
|
|
|
|
filter-cat \
|
2010-05-13 06:39:26 +02:00
|
|
|
gdbus-example-export \
|
2010-05-06 20:13:59 +02:00
|
|
|
gdbus-example-own-name \
|
|
|
|
gdbus-example-watch-name \
|
|
|
|
gdbus-example-watch-proxy \
|
|
|
|
gdbus-example-server \
|
|
|
|
gdbus-example-subtree \
|
|
|
|
gdbus-example-peer \
|
2010-05-12 21:49:48 +02:00
|
|
|
gdbus-example-proxy-subclass \
|
2010-07-07 21:00:23 +02:00
|
|
|
gdbus-connection-flush-helper \
|
2010-05-07 22:23:45 +02:00
|
|
|
proxy \
|
2010-10-23 02:27:39 +02:00
|
|
|
gapplication-example-open \
|
|
|
|
gapplication-example-cmdline \
|
2010-10-23 11:54:50 +02:00
|
|
|
gapplication-example-cmdline2 \
|
2011-03-04 04:40:48 +01:00
|
|
|
gapplication-example-cmdline3 \
|
2010-10-31 03:19:02 +01:00
|
|
|
gapplication-example-actions \
|
2012-05-05 16:52:28 +02:00
|
|
|
gapplication-example-dbushooks \
|
2012-04-16 10:16:47 +02:00
|
|
|
gdbus-daemon \
|
2013-01-03 19:11:58 +01:00
|
|
|
gdbus-testserver \
|
2010-05-06 20:13:59 +02:00
|
|
|
$(NULL)
|
2008-02-07 10:56:25 +01:00
|
|
|
|
|
|
|
if OS_UNIX
|
2011-07-26 16:05:57 +02:00
|
|
|
TEST_PROGS += \
|
|
|
|
live-g-file \
|
|
|
|
desktop-app-info \
|
|
|
|
unix-fd \
|
|
|
|
unix-streams \
|
|
|
|
gapplication \
|
2011-09-14 17:06:02 +02:00
|
|
|
basic-application \
|
2011-07-26 16:05:57 +02:00
|
|
|
gdbus-test-codegen \
|
2013-04-23 20:30:42 +02:00
|
|
|
socket-address \
|
2011-07-26 16:05:57 +02:00
|
|
|
$(NULL)
|
|
|
|
SAMPLE_PROGS += \
|
|
|
|
gdbus-example-unix-fd-client \
|
|
|
|
gdbus-example-objectmanager-server \
|
|
|
|
gdbus-example-objectmanager-client \
|
2012-12-20 07:34:22 +01:00
|
|
|
gdbus-test-fixture \
|
2012-11-11 17:32:40 +01:00
|
|
|
appinfo-test \
|
2011-07-26 16:05:57 +02:00
|
|
|
$(NULL)
|
2008-02-07 10:56:25 +01:00
|
|
|
endif
|
2008-01-22 10:13:28 +01:00
|
|
|
|
2010-04-19 10:32:05 +02:00
|
|
|
if OS_WIN32
|
|
|
|
TEST_PROGS += win32-streams
|
|
|
|
endif
|
|
|
|
|
2013-01-19 08:50:28 +01:00
|
|
|
if PLATFORM_WIN32
|
|
|
|
no_undefined = -no-undefined
|
|
|
|
endif
|
|
|
|
|
2012-03-07 04:10:53 +01:00
|
|
|
actions_SOURCES = actions.c gdbus-sessionbus.c gdbus-sessionbus.h
|
2010-08-18 07:55:48 +02:00
|
|
|
|
2012-10-26 10:42:17 +02:00
|
|
|
unix_streams_LDADD = $(LDADD) \
|
2010-07-29 06:53:30 +02:00
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
2008-12-15 21:01:49 +01:00
|
|
|
|
2012-10-26 10:42:17 +02:00
|
|
|
win32_streams_LDADD = $(LDADD) \
|
2010-04-19 10:32:05 +02:00
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2012-10-26 10:42:17 +02:00
|
|
|
resolver_LDADD = $(LDADD) \
|
2008-12-29 18:53:47 +01:00
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2012-10-26 10:42:17 +02:00
|
|
|
socket_server_LDADD = $(LDADD) \
|
2009-05-15 10:08:18 +02:00
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2011-08-04 08:54:55 +02:00
|
|
|
socket_client_SOURCES = socket-client.c \
|
|
|
|
gtlsconsoleinteraction.c \
|
|
|
|
gtlsconsoleinteraction.h
|
2012-10-26 10:42:17 +02:00
|
|
|
socket_client_LDADD = $(LDADD) \
|
2009-05-15 10:08:18 +02:00
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2012-10-26 10:42:17 +02:00
|
|
|
echo_server_LDADD = $(LDADD) \
|
2009-05-15 21:34:14 +02:00
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2012-10-26 10:42:17 +02:00
|
|
|
httpd_LDADD = $(LDADD) \
|
2009-05-15 21:34:14 +02:00
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2012-10-26 10:42:17 +02:00
|
|
|
send_data_LDADD = $(LDADD) \
|
2009-05-19 13:44:11 +02:00
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2012-10-26 10:42:17 +02:00
|
|
|
contexts_LDADD = $(LDADD) \
|
2009-06-17 02:22:58 +02:00
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2012-04-24 16:39:21 +02:00
|
|
|
gdbus_daemon_SOURCES = gdbus-daemon.c $(top_srcdir)/gio/gdbusdaemon.c $(top_builddir)/gio/gdbus-daemon-generated.c
|
2012-04-16 10:16:47 +02:00
|
|
|
|
2013-01-03 19:11:58 +01:00
|
|
|
gdbus_testserver_SOURCES = gdbus-testserver.c
|
|
|
|
|
2010-05-06 20:13:59 +02:00
|
|
|
if HAVE_DBUS1
|
|
|
|
TEST_PROGS += gdbus-serialization
|
|
|
|
gdbus_serialization_SOURCES = gdbus-serialization.c gdbus-tests.h gdbus-tests.c
|
2013-02-26 17:19:51 +01:00
|
|
|
gdbus_serialization_CFLAGS = $(AM_CFLAGS) $(DBUS1_CFLAGS)
|
2012-10-26 10:42:17 +02:00
|
|
|
gdbus_serialization_LDADD = $(LDADD) $(DBUS1_LIBS)
|
2012-04-12 05:34:08 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
TEST_PROGS += gdbus-auth
|
|
|
|
gdbus_auth_SOURCES = gdbus-auth.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
2013-01-04 21:36:37 +01:00
|
|
|
gdbus_auth_LDADD = $(LDADD)
|
2010-05-06 20:13:59 +02:00
|
|
|
|
2010-09-10 22:21:37 +02:00
|
|
|
gdbus_bz627724_SOURCES = gdbus-bz627724.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
|
|
|
|
2011-09-12 19:24:24 +02:00
|
|
|
gdbus_close_pending_SOURCES = gdbus-close-pending.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
|
|
|
|
2011-07-26 16:05:57 +02:00
|
|
|
if OS_UNIX
|
2011-10-05 18:33:55 +02:00
|
|
|
gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c : test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen
|
2011-08-23 17:38:36 +02:00
|
|
|
$(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
|
|
|
|
UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
|
2011-08-23 17:37:35 +02:00
|
|
|
$(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \
|
|
|
|
--interface-prefix org.project. \
|
|
|
|
--generate-c-code gdbus-test-codegen-generated \
|
|
|
|
--c-generate-object-manager \
|
2011-09-16 22:01:13 +02:00
|
|
|
--c-namespace Foo_iGen \
|
2011-08-23 17:37:35 +02:00
|
|
|
--generate-docbook gdbus-test-codegen-generated-doc \
|
|
|
|
--annotate "org.project.Bar" Key1 Value1 \
|
|
|
|
--annotate "org.project.Bar" org.gtk.GDBus.Internal Value2 \
|
|
|
|
--annotate "org.project.Bar.HelloWorld()" Key3 Value3 \
|
|
|
|
--annotate "org.project.Bar::TestSignal" Key4 Value4 \
|
|
|
|
--annotate "org.project.Bar:ay" Key5 Value5 \
|
|
|
|
--annotate "org.project.Bar.TestPrimitiveTypes()[val_int32]" Key6 Value6 \
|
|
|
|
--annotate "org.project.Bar.TestPrimitiveTypes()[ret_uint32]" Key7 Value7 \
|
|
|
|
--annotate "org.project.Bar::TestSignal[array_of_strings]" Key8 Value8 \
|
|
|
|
$(srcdir)/test-codegen.xml \
|
2011-04-11 16:54:52 +02:00
|
|
|
$(NULL)
|
|
|
|
|
2011-04-11 22:35:14 +02:00
|
|
|
BUILT_SOURCES += gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
|
|
|
|
|
2011-04-11 16:54:52 +02:00
|
|
|
gdbus_test_codegen_SOURCES = gdbus-test-codegen.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
|
|
|
gdbus_test_codegen_SOURCES += gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
|
2012-10-26 10:30:29 +02:00
|
|
|
|
2011-07-26 16:05:57 +02:00
|
|
|
endif # OS_UNIX
|
2011-04-11 16:54:52 +02:00
|
|
|
|
2010-05-06 20:13:59 +02:00
|
|
|
gdbus_connection_SOURCES = gdbus-connection.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
2010-09-23 21:47:46 +02:00
|
|
|
|
2011-11-01 19:03:12 +01:00
|
|
|
gdbus_connection_flush_SOURCES = \
|
|
|
|
gdbus-connection-flush.c \
|
|
|
|
test-io-stream.c \
|
|
|
|
test-io-stream.h \
|
|
|
|
test-pipe-unix.c \
|
|
|
|
test-pipe-unix.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2011-10-07 20:20:03 +02:00
|
|
|
gdbus_connection_loss_SOURCES = gdbus-connection-loss.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
|
|
|
|
2010-09-23 21:47:46 +02:00
|
|
|
gdbus_connection_slow_SOURCES = gdbus-connection-slow.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
2010-05-06 20:13:59 +02:00
|
|
|
|
|
|
|
gdbus_names_SOURCES = gdbus-names.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
|
|
|
|
|
|
|
gdbus_proxy_SOURCES = gdbus-proxy.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
|
|
|
|
2011-08-15 17:00:51 +02:00
|
|
|
gdbus_proxy_threads_SOURCES = gdbus-proxy-threads.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
|
|
|
|
2010-06-11 21:45:18 +02:00
|
|
|
gdbus_proxy_well_known_name_SOURCES = gdbus-proxy-well-known-name.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
|
|
|
|
2010-05-06 20:13:59 +02:00
|
|
|
gdbus_introspection_SOURCES = gdbus-introspection.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
|
|
|
|
|
|
|
gdbus_threading_SOURCES = gdbus-threading.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
|
|
|
|
|
|
|
gdbus_export_SOURCES = gdbus-export.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
|
|
|
|
|
|
|
gdbus_error_SOURCES = gdbus-error.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
|
|
|
|
2011-11-01 17:49:36 +01:00
|
|
|
gdbus_non_socket_SOURCES = \
|
|
|
|
gdbus-non-socket.c \
|
|
|
|
gdbus-tests.c \
|
|
|
|
gdbus-tests.h \
|
|
|
|
test-io-stream.c \
|
|
|
|
test-io-stream.h \
|
|
|
|
test-pipe-unix.c \
|
|
|
|
test-pipe-unix.h \
|
|
|
|
$(NULL)
|
2010-08-13 19:58:27 +02:00
|
|
|
|
2010-05-06 20:13:59 +02:00
|
|
|
gdbus_exit_on_close_SOURCES = gdbus-exit-on-close.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
|
|
|
|
|
2011-12-21 21:45:16 +01:00
|
|
|
resources_SOURCES = resources.c test_resources.c test_resources2.c test_resources2.h
|
2012-01-23 20:42:20 +01:00
|
|
|
resources_DEPENDENCIES = test.gresource
|
2011-12-21 21:45:16 +01:00
|
|
|
|
2012-04-04 20:39:17 +02:00
|
|
|
gapplication_SOURCES = gapplication.c gdbus-sessionbus.h gdbus-sessionbus.c gdbus-tests.h gdbus-tests.c
|
2011-09-14 17:06:02 +02:00
|
|
|
|
2012-04-07 17:21:09 +02:00
|
|
|
gmenumodel_SOURCES = gmenumodel.c gdbus-sessionbus.h gdbus-sessionbus.c
|
2011-10-22 05:51:48 +02:00
|
|
|
|
2013-05-20 12:38:41 +02:00
|
|
|
TESTS_ENVIRONMENT = \
|
|
|
|
GLIB_MKENUMS=../../gobject/glib-mkenums \
|
|
|
|
GLIB_COMPILE_SCHEMAS=../glib-compile-schemas
|
|
|
|
|
2010-06-17 16:50:47 +02:00
|
|
|
schema_tests = \
|
2013-05-20 12:38:41 +02:00
|
|
|
array-default-not-in-choices.gschema.xml \
|
|
|
|
bad-choice.gschema.xml \
|
|
|
|
bad-key.gschema.xml \
|
|
|
|
bad-key2.gschema.xml \
|
|
|
|
bad-key3.gschema.xml \
|
|
|
|
bad-key4.gschema.xml \
|
|
|
|
bad-type.gschema.xml \
|
|
|
|
bare-alias.gschema.xml \
|
|
|
|
choice-alias.gschema.xml \
|
|
|
|
choice-bad.gschema.xml \
|
|
|
|
choice-badtype.gschema.xml \
|
|
|
|
choice-invalid-alias.gschema.xml \
|
|
|
|
choice-missing-value.gschema.xml \
|
|
|
|
choice-shadowed-alias.gschema.xml \
|
|
|
|
choice-upside-down.gschema.xml \
|
|
|
|
choice.gschema.xml \
|
|
|
|
choices-wrong-type.gschema.xml \
|
|
|
|
default-in-aliases.gschema.xml \
|
|
|
|
default-not-in-choices.gschema.xml \
|
|
|
|
default-out-of-range.gschema.xml \
|
|
|
|
empty-key.gschema.xml \
|
|
|
|
enum-with-aliases.gschema.xml \
|
|
|
|
enum-with-bad-default.gschema.xml \
|
|
|
|
enum-with-chained-alias.gschema.xml \
|
|
|
|
enum-with-choice.gschema.xml \
|
|
|
|
enum-with-invalid-alias.gschema.xml \
|
|
|
|
enum-with-repeated-alias.gschema.xml \
|
|
|
|
enum-with-repeated-nick.gschema.xml \
|
|
|
|
enum-with-repeated-value.gschema.xml \
|
|
|
|
enum-with-shadow-alias.gschema.xml \
|
|
|
|
enum.gschema.xml \
|
|
|
|
flags-aliased-default.gschema.xml \
|
|
|
|
flags-bad-default.gschema.xml \
|
|
|
|
flags-more-than-one-bit.gschema.xml \
|
|
|
|
flags-with-enum-attr.gschema.xml \
|
|
|
|
flags-with-enum-tag.gschema.xml \
|
|
|
|
extend-and-shadow-indirect.gschema.xml \
|
|
|
|
extend-and-shadow.gschema.xml \
|
|
|
|
extend-missing.gschema.xml \
|
|
|
|
extend-nonlist.gschema.xml \
|
|
|
|
extend-self.gschema.xml \
|
|
|
|
extend-wrong-list-indirect.gschema.xml \
|
|
|
|
extend-wrong-list.gschema.xml \
|
|
|
|
extending.gschema.xml \
|
|
|
|
from-docs.gschema.xml \
|
|
|
|
incomplete-list.gschema.xml \
|
|
|
|
inherit-gettext-domain.gschema.xml \
|
|
|
|
invalid-path.gschema.xml \
|
|
|
|
key-in-list-indirect.gschema.xml \
|
|
|
|
key-in-list.gschema.xml \
|
|
|
|
list-of-missing.gschema.xml \
|
|
|
|
missing-quotes.gschema.xml \
|
|
|
|
no-default.gschema.xml \
|
|
|
|
overflow.gschema.xml \
|
|
|
|
override-missing.gschema.xml \
|
|
|
|
override-range-error.gschema.xml \
|
|
|
|
override-then-key.gschema.xml \
|
|
|
|
override-twice.gschema.xml \
|
|
|
|
override-type-error.gschema.xml \
|
|
|
|
override.gschema.xml \
|
|
|
|
range-badtype.gschema.xml \
|
|
|
|
range-default-high.gschema.xml \
|
|
|
|
range-default-low.gschema.xml \
|
|
|
|
range-high-default.gschema.xml \
|
|
|
|
range-low-default.gschema.xml \
|
|
|
|
range-missing-max.gschema.xml \
|
|
|
|
range-missing-min.gschema.xml \
|
|
|
|
range-parse-error.gschema.xml \
|
|
|
|
range-wrong-type.gschema.xml \
|
|
|
|
range.gschema.xml \
|
|
|
|
wrong-category.gschema.xml \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
schema_test_files = $(addprefix schema-tests/,$(schema_tests))
|
2010-06-17 16:50:47 +02:00
|
|
|
|
2012-10-26 10:42:17 +02:00
|
|
|
proxy_LDADD = $(LDADD) \
|
2010-05-07 22:23:45 +02:00
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2011-07-25 21:59:58 +02:00
|
|
|
tls_certificate_SOURCES = tls-certificate.c gtesttlsbackend.c gtesttlsbackend.h
|
2011-06-12 21:59:36 +02:00
|
|
|
|
2013-05-20 12:38:41 +02:00
|
|
|
cert_tests = \
|
|
|
|
cert1.pem \
|
|
|
|
cert2.pem \
|
|
|
|
cert3.pem \
|
|
|
|
cert-key.pem \
|
|
|
|
cert-list.pem \
|
|
|
|
key8.pem \
|
|
|
|
key-cert.pem \
|
|
|
|
key.pem \
|
|
|
|
nothing.pem \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
cert_test_files = $(addprefix cert-tests/,$(cert_tests))
|
|
|
|
|
2011-05-28 20:29:08 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
2011-04-11 22:35:14 +02:00
|
|
|
|
2011-07-26 16:05:57 +02:00
|
|
|
if OS_UNIX
|
2013-02-26 17:19:51 +01:00
|
|
|
gdbus_example_objectmanager_server_CFLAGS = $(AM_CFLAGS) -I$(top_builddir)/gio/tests/gdbus-object-manager-example
|
2012-10-26 10:42:17 +02:00
|
|
|
gdbus_example_objectmanager_server_LDADD = $(top_builddir)/gio/tests/gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD)
|
2011-04-11 22:35:14 +02:00
|
|
|
|
2013-02-26 17:19:51 +01:00
|
|
|
gdbus_example_objectmanager_client_CFLAGS = $(AM_CFLAGS) -I$(top_builddir)/gio/tests/gdbus-object-manager-example
|
2012-10-26 10:42:17 +02:00
|
|
|
gdbus_example_objectmanager_client_LDADD = $(top_builddir)/gio/tests/gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD)
|
2011-12-02 17:20:21 +01:00
|
|
|
|
|
|
|
gdbus_peer_SOURCES = gdbus-peer.c gdbus-tests.h gdbus-tests.c
|
2013-02-26 17:19:51 +01:00
|
|
|
gdbus_peer_CFLAGS = $(AM_CFLAGS) -I$(top_builddir)/gio/tests/gdbus-object-manager-example
|
2012-10-26 10:42:17 +02:00
|
|
|
gdbus_peer_LDADD = $(top_builddir)/gio/tests/gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD)
|
2011-12-02 17:20:21 +01:00
|
|
|
|
2012-12-20 07:34:22 +01:00
|
|
|
gdbus_test_fixture_SOURCES = gdbus-test-fixture.c
|
2013-02-26 17:19:51 +01:00
|
|
|
gdbus_test_fixture_CFLAGS = $(AM_CFLAGS) -I$(top_builddir)/gio/tests/gdbus-object-manager-example
|
2012-12-20 07:34:22 +01:00
|
|
|
gdbus_test_fixture_LDADD = $(top_builddir)/gio/tests/gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD)
|
|
|
|
|
2011-07-26 16:05:57 +02:00
|
|
|
endif OS_UNIX
|
2011-04-11 22:35:14 +02:00
|
|
|
|
2011-05-28 20:29:08 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
2011-04-11 22:35:14 +02:00
|
|
|
|
2010-04-26 03:07:26 +02:00
|
|
|
EXTRA_DIST += \
|
2010-06-17 16:50:47 +02:00
|
|
|
socket-common.c \
|
|
|
|
org.gtk.test.gschema \
|
|
|
|
org.gtk.test.gschema.xml \
|
|
|
|
testenum.h \
|
|
|
|
enums.xml.template \
|
|
|
|
de.po \
|
2013-05-20 12:38:41 +02:00
|
|
|
$(schema_test_files) \
|
2011-11-17 05:24:46 +01:00
|
|
|
org.gtk.schemasourcecheck.gschema.xml \
|
2010-06-17 16:50:47 +02:00
|
|
|
appinfo-test.desktop \
|
2010-07-05 09:09:36 +02:00
|
|
|
appinfo-test2.desktop \
|
|
|
|
appinfo-test-gnome.desktop \
|
|
|
|
appinfo-test-notgnome.desktop \
|
2011-04-11 20:59:19 +02:00
|
|
|
test-codegen.xml \
|
2013-05-20 12:38:41 +02:00
|
|
|
$(cert_test_files) \
|
2011-12-21 21:45:16 +01:00
|
|
|
test.gresource.xml \
|
2012-01-13 23:48:12 +01:00
|
|
|
test1.txt \
|
2011-12-21 21:45:16 +01:00
|
|
|
test2.gresource.xml \
|
2012-01-13 23:48:12 +01:00
|
|
|
test2.txt \
|
|
|
|
test3.gresource.xml \
|
|
|
|
test3.txt \
|
|
|
|
test4.gresource.xml \
|
2011-04-11 20:59:19 +02:00
|
|
|
$(NULL)
|
2010-08-18 00:34:13 +02:00
|
|
|
|
2011-12-21 21:45:16 +01:00
|
|
|
MISC_STUFF = test.mo test.gresource
|
2010-04-17 07:43:58 +02:00
|
|
|
|
|
|
|
test.mo: de.po
|
2010-04-18 02:54:53 +02:00
|
|
|
$(MSGFMT) -o test.mo $(srcdir)/de.po; \
|
2010-04-17 07:43:58 +02:00
|
|
|
$(MKDIR_P) de/LC_MESSAGES; \
|
|
|
|
cp -f test.mo de/LC_MESSAGES
|
|
|
|
|
2012-01-18 18:05:07 +01:00
|
|
|
if CROSS_COMPILING
|
|
|
|
glib_compile_resources=$(GLIB_COMPILE_RESOURCES)
|
|
|
|
else
|
|
|
|
glib_compile_resources=$(top_builddir)/gio/glib-compile-resources
|
|
|
|
endif
|
|
|
|
|
2011-12-21 21:45:16 +01:00
|
|
|
BUILT_SOURCES += test_resources.c test_resources2.c test_resources2.h
|
2012-09-13 12:13:36 +02:00
|
|
|
test_resources.c: test2.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test2.gresource.xml)
|
2012-01-23 22:51:44 +01:00
|
|
|
$(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate-source --c-name _g_test1 $<
|
2011-12-21 21:45:16 +01:00
|
|
|
|
2012-09-13 12:13:36 +02:00
|
|
|
test_resources2.h test_resources2.c: test3.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test3.gresource.xml)
|
2012-01-23 22:51:44 +01:00
|
|
|
$(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate --c-name _g_test2 --manual-register $<
|
2011-12-21 21:45:16 +01:00
|
|
|
|
2012-09-13 12:13:36 +02:00
|
|
|
plugin_resources.c: test4.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test4.gresource.xml)
|
2012-01-23 22:51:44 +01:00
|
|
|
$(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate-source --c-name _g_plugin $<
|
2011-12-21 21:45:16 +01:00
|
|
|
|
2012-09-13 12:13:36 +02:00
|
|
|
test.gresource: test.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test.gresource.xml)
|
2012-01-23 22:51:44 +01:00
|
|
|
$(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) $<
|
2011-12-21 21:45:16 +01:00
|
|
|
|
2013-05-20 12:38:41 +02:00
|
|
|
if BUILDOPT_INSTALL_TESTS
|
|
|
|
insttest_LTLIBRARIES = libresourceplugin.la
|
|
|
|
else
|
2011-12-21 21:45:16 +01:00
|
|
|
noinst_LTLIBRARIES = libresourceplugin.la
|
2013-05-20 12:38:41 +02:00
|
|
|
endif
|
2011-12-21 21:45:16 +01:00
|
|
|
|
|
|
|
libresourceplugin_la_SOURCES = resourceplugin.c plugin_resources.c
|
2013-05-20 12:38:41 +02:00
|
|
|
libresourceplugin_la_LDFLAGS = -avoid-version -module $(no_undefined) -rpath $(insttestdir)
|
2012-10-27 12:10:44 +02:00
|
|
|
libresourceplugin_la_LIBADD = $(LDADD)
|
2011-12-21 21:45:16 +01:00
|
|
|
|
2012-01-31 00:45:45 +01:00
|
|
|
CLEANFILES = gdbus-test-codegen-generated.[ch] gdbus-test-codegen-generated-doc-*.xml test_resources2.[ch] plugin_resources.c
|
2011-04-11 16:54:52 +02:00
|
|
|
|
2010-06-17 20:05:40 +02:00
|
|
|
DISTCLEANFILES = \
|
|
|
|
applications/mimeinfo.cache \
|
|
|
|
org.gtk.test.enums.xml \
|
|
|
|
de/LC_MESSAGES/test.mo \
|
|
|
|
test.mo \
|
2011-12-21 21:45:16 +01:00
|
|
|
test.gresource \
|
|
|
|
test_resources.c \
|
2010-06-17 20:05:40 +02:00
|
|
|
gsettings.store \
|
2011-11-17 05:24:46 +01:00
|
|
|
gschemas.compiled \
|
|
|
|
schema-source/gschemas.compiled
|
2011-09-10 05:43:02 +02:00
|
|
|
|
|
|
|
distclean-local:
|
2012-03-03 21:39:35 +01:00
|
|
|
rm -rf xdgdatahome xdgdatadir
|
2013-05-20 12:38:41 +02:00
|
|
|
|
|
|
|
test_files = \
|
|
|
|
contexts.c \
|
|
|
|
g-icon.c \
|
|
|
|
enums.xml.template \
|
|
|
|
testenum.h \
|
|
|
|
org.gtk.test.gschema.xml \
|
|
|
|
org.gtk.schemasourcecheck.gschema.xml \
|
|
|
|
test.gresource \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
if BUILDOPT_INSTALL_TESTS
|
|
|
|
insttest_PROGRAMS = $(test_progs)
|
|
|
|
|
|
|
|
schematestdir = $(insttestdir)/schema-tests
|
|
|
|
schematest_DATA = $(schema_test_files)
|
|
|
|
|
|
|
|
certtestdir = $(insttestdir)/cert-tests
|
|
|
|
certtest_DATA = $(cert_test_files)
|
|
|
|
|
|
|
|
testdatadir = $(insttestdir)
|
|
|
|
testdata_DATA = $(test_files)
|
|
|
|
|
|
|
|
testmetadir = $(datadir)/installed-tests/$(PACKAGE)
|
|
|
|
testmeta_DATA = $(test_progs:=.test)
|
|
|
|
|
|
|
|
%.test: % Makefile
|
|
|
|
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
|
|
|
|
echo 'Type=session' >> $@.tmp; \
|
|
|
|
echo 'Exec=env G_TEST_DATA=$(pkglibexecdir)/installed-tests $(pkglibexecdir)/installed-tests/$<' >> $@.tmp; \
|
|
|
|
mv $@.tmp $@)
|
|
|
|
|
|
|
|
endif
|