-include $(top_srcdir)/glib.mk
+include $(top_srcdir)/glib-tap.mk
+
dist_uninstalled_test_data =
test_ltlibraries =
-SUBDIRS = gdbus-object-manager-example services
+SUBDIRS = gdbus-object-manager-example services modules
LDADD = \
- $(top_builddir)/glib/libglib-2.0.la \
+ $(top_builddir)/gio/libgio-2.0.la \
$(top_builddir)/gobject/libgobject-2.0.la \
$(top_builddir)/gmodule/libgmodule-2.0.la \
- $(top_builddir)/gio/libgio-2.0.la
+ $(top_builddir)/glib/libglib-2.0.la \
+ $(NULL)
+
AM_CPPFLAGS = $(gio_INCLUDES) $(GLIB_DEBUG_FLAGS) -I$(top_builddir)/gio -I$(top_srcdir)/gio
DEFS = -DG_LOG_DOMAIN=\"GLib-GIO\" -DTEST_SERVICES=\""$(abs_top_builddir)/gio/tests/services"\"
AM_CFLAGS = $(GLIB_WARN_CFLAGS)
# Test programs buildable on all platforms
test_programs = \
- io-stream \
- memory-input-stream \
- memory-output-stream \
- readwrite \
- g-file \
- g-file-info \
+ appmonitor \
+ async-close-output-stream \
+ async-splice-output-stream \
+ buffered-input-stream \
+ buffered-output-stream \
+ cancellable \
+ contexts \
converter-stream \
+ credentials \
data-input-stream \
data-output-stream \
- g-icon \
- buffered-input-stream \
- buffered-output-stream \
- sleepy-stream \
+ defaultvalue \
+ fileattributematcher \
filter-streams \
- volumemonitor \
- simple-async-result \
- srvtarget \
- contexts \
- async-close-output-stream \
+ giomodule \
+ gsubprocess \
+ g-file \
+ g-file-info \
+ g-icon \
gdbus-addresses \
- network-address \
gdbus-message \
- socket \
- pollable \
- tls-interaction \
- cancellable \
- vfs \
+ inet-address \
+ io-stream \
+ memory-input-stream \
+ memory-output-stream \
+ monitor \
+ network-address \
network-monitor \
- fileattributematcher \
+ permission \
+ pollable \
proxy-test \
+ readwrite \
+ simple-async-result \
simple-proxy \
- inet-address \
- permission \
+ sleepy-stream \
+ socket \
+ srvtarget \
task \
- credentials \
+ tls-interaction \
+ vfs \
+ volumemonitor \
$(NULL)
uninstalled_test_programs = \
$(NULL)
uninstalled_test_extra_programs = \
- resolver \
- socket-server \
+ gio-du \
echo-server \
- httpd \
- send-data \
filter-cat \
+ gapplication-example-actions \
+ gapplication-example-cmdline \
+ gapplication-example-cmdline2 \
+ gapplication-example-cmdline3 \
+ gapplication-example-dbushooks \
+ gapplication-example-open \
gdbus-example-export \
gdbus-example-own-name \
- gdbus-example-watch-name \
- gdbus-example-watch-proxy \
- gdbus-example-server \
- gdbus-example-subtree \
gdbus-example-peer \
gdbus-example-proxy-subclass \
+ gdbus-example-server \
+ gdbus-example-subtree \
+ gdbus-example-watch-name \
+ gdbus-example-watch-proxy \
+ gsubprocess-testprog \
+ httpd \
proxy \
- gapplication-example-open \
- gapplication-example-cmdline \
- gapplication-example-cmdline2 \
- gapplication-example-cmdline3 \
- gapplication-example-actions \
- gapplication-example-dbushooks \
+ resolver \
+ send-data \
+ socket-server \
$(NULL)
test_extra_programs = \
- gdbus-testserver \
gdbus-connection-flush-helper \
+ gdbus-testserver \
$(NULL)
dist_uninstalled_test_data += $(addprefix schema-tests/,$(schema_tests))
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-wrong-list-indirect.gschema.xml \
extend-wrong-list.gschema.xml \
extending.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 \
from-docs.gschema.xml \
incomplete-list.gschema.xml \
inherit-gettext-domain.gschema.xml \
wrong-category.gschema.xml \
$(NULL)
+test_programs += thumbnail-verification
+dist_test_data += $(thumbnail_data_files)
+thumbnail_data_files = $(addprefix thumbnails/,$(thumbnail_tests))
+thumbnail_tests = \
+ bad-header.png \
+ empty-key.png \
+ header-and-chunk-size.png \
+ header-only.png \
+ huge-chunk-size.png \
+ mtime-zero.png \
+ no-text-data.png \
+ overlong-value.png \
+ uri-mismatch.png \
+ valid.png \
+ valid-no-size.png \
+ $(NULL)
+
test_programs += tls-certificate
tls_certificate_SOURCES = \
tls-certificate.c \
if OS_UNIX
test_programs += \
+ contenttype \
+ file \
+ gdbus-peer-object-manager \
live-g-file \
+ socket-address \
unix-fd \
unix-streams \
+ $(NULL)
+
+test_extra_programs += \
basic-application \
- socket-address \
- gdbus-peer-object-manager \
- contenttype \
- file \
$(NULL)
# Uninstalled because of the check-for-executable logic in DesktopAppInfo unable to find the installed executable
desktop-app-info \
$(NULL)
+home_desktop_files = \
+ epiphany-weather-for-toronto-island-9c6a4e022b17686306243dada811d550d25eb1fb.desktop \
+ eog.desktop
+
+usr_desktop_files = \
+ baobab.desktop \
+ cheese.desktop \
+ dconf-editor.desktop \
+ eog.desktop \
+ evince-previewer.desktop \
+ evince.desktop \
+ file-roller.desktop \
+ gcr-prompter.desktop \
+ gcr-viewer.desktop \
+ gedit.desktop \
+ glade.desktop \
+ gnome-clocks.desktop \
+ gnome-contacts.desktop \
+ gnome-font-viewer.desktop \
+ gnome-music.desktop \
+ gnome-terminal.desktop \
+ gucharmap.desktop \
+ kde4/dolphin.desktop \
+ kde4/kate.desktop \
+ kde4/konqbrowser.desktop \
+ kde4/okular.desktop \
+ mimeinfo.cache \
+ nautilus-autorun-software.desktop \
+ nautilus-classic.desktop \
+ nautilus-connect-server.desktop \
+ nautilus.desktop \
+ totem.desktop \
+ yelp.desktop
+
dist_test_data += \
- appinfo-test.desktop \
- appinfo-test2.desktop \
+ $(addprefix desktop-files/usr/applications/,$(usr_desktop_files)) \
+ $(addprefix desktop-files/home/applications/,$(home_desktop_files))
+
+dist_test_data += \
+ appinfo-test-actions.desktop \
appinfo-test-gnome.desktop \
appinfo-test-notgnome.desktop \
+ appinfo-test.desktop \
+ appinfo-test2.desktop \
file.c \
+ org.gtk.test.dbusappinfo.desktop \
+ x-content/image-dcf/DCIM/Camera/20130831_203925.jpg \
+ x-content/image-dcf/DCIM/Camera/20130831_203928.jpg \
+ x-content/unix-software/autorun.sh \
+ x-content/win32-software/autorun.exe \
$(NULL)
test_extra_programs += \
appinfo-test \
+ apps \
$(NULL)
uninstalled_test_extra_programs += \
test_programs += mimeapps
clean-local: clean-mimeapps
clean-mimeapps:
- rm -rf xdgdatadir xdgdatahome
+ rm -rf xdgdatadir xdgdatahome xdgconfighome
uninstalled_test_programs += gsettings gschema-compile
gsettings_DEPENDENCIES = test.mo
-CLEANFILES += test.mo de/LC_MESSAGES/test.mo
+CLEANFILES += test.mo de/LC_MESSAGES/test.mo keyfile/gsettings.store
gsettings_CFLAGS = $(AM_CFLAGS) -DSRCDIR=\"$(abs_srcdir)\"
test.mo: de.po
$(AM_V_GEN) $(MSGFMT) -o test.mo $(srcdir)/de.po; \
cp -f test.mo de/LC_MESSAGES
EXTRA_DIST += de.po
dist_uninstalled_test_data += \
- org.gtk.test.gschema.xml \
+ org.gtk.test.gschema.xml.orig \
org.gtk.schemasourcecheck.gschema.xml \
testenum.h \
enums.xml.template
# Generated while running the testcase itself...
CLEANFILES += \
+ org.gtk.test.gschema.xml \
org.gtk.test.enums.xml \
gsettings.store \
gschemas.compiled \
uninstalled_test_extra_programs += gdbus-example-objectmanager-client
gdbus_example_objectmanager_client_LDADD = gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD)
-uninstalled_test_extra_programs += gdbus-example-objectmanager-server
-gdbus_example_objectmanager_server_LDADD = gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD)
+test_extra_programs += gsubprocess-testprog
uninstalled_test_extra_programs += gdbus-test-fixture
gdbus_test_fixture_LDADD = gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD)
gdbus_sessionbus_sources = gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
test_programs += \
- gapplication \
actions \
+ dbus-appinfo \
+ gapplication \
gdbus-auth \
- gdbus-connection \
gdbus-bz627724 \
- gdbus-exit-on-close \
+ gdbus-close-pending \
+ gdbus-connection \
gdbus-connection-loss \
gdbus-connection-slow \
+ gdbus-error \
+ gdbus-exit-on-close \
+ gdbus-export \
+ gdbus-introspection \
gdbus-names \
gdbus-proxy \
gdbus-proxy-threads \
gdbus-proxy-well-known-name \
- gdbus-introspection \
- gdbus-threading \
- gdbus-export \
gdbus-test-codegen \
- gdbus-close-pending \
- gdbus-error \
+ gdbus-test-codegen-old \
+ gdbus-threading \
gmenumodel \
+ gnotification \
$(NULL)
gdbus_proxy_threads_CFLAGS = $(AM_CFLAGS) $(DBUS1_CFLAGS)
-gdbus_exit_on_close_SOURCES = $(gdbus_sessionbus_sources) gdbus-exit-on-close.c
-gapplication_SOURCES = $(gdbus_sessionbus_sources) gapplication.c
actions_SOURCES = $(gdbus_sessionbus_sources) actions.c
+dbus_appinfo_SOURCES = $(gdbus_sessionbus_sources) dbus-appinfo.c
+gapplication_SOURCES = $(gdbus_sessionbus_sources) gapplication.c
gdbus_auth_SOURCES = $(gdbus_sessionbus_sources) gdbus-auth.c
-gdbus_connection_SOURCES = $(gdbus_sessionbus_sources) gdbus-connection.c
gdbus_bz627724_SOURCES = $(gdbus_sessionbus_sources) gdbus-bz627724.c
+gdbus_close_pending_SOURCES = $(gdbus_sessionbus_sources) gdbus-close-pending.c
+gdbus_connection_SOURCES = $(gdbus_sessionbus_sources) gdbus-connection.c
gdbus_connection_loss_SOURCES = $(gdbus_sessionbus_sources) gdbus-connection-loss.c
gdbus_connection_slow_SOURCES = $(gdbus_sessionbus_sources) gdbus-connection-slow.c
+gdbus_error_SOURCES = $(gdbus_sessionbus_sources) gdbus-error.c
+gdbus_exit_on_close_SOURCES = $(gdbus_sessionbus_sources) gdbus-exit-on-close.c
+gdbus_export_SOURCES = $(gdbus_sessionbus_sources) gdbus-export.c
+gdbus_introspection_SOURCES = $(gdbus_sessionbus_sources) gdbus-introspection.c
gdbus_names_SOURCES = $(gdbus_sessionbus_sources) gdbus-names.c
gdbus_proxy_SOURCES = $(gdbus_sessionbus_sources) gdbus-proxy.c
gdbus_proxy_threads_SOURCES = $(gdbus_sessionbus_sources) gdbus-proxy-threads.c
gdbus_proxy_well_known_name_SOURCES = $(gdbus_sessionbus_sources) gdbus-proxy-well-known-name.c
-gdbus_introspection_SOURCES = $(gdbus_sessionbus_sources) gdbus-introspection.c
-gdbus_threading_SOURCES = $(gdbus_sessionbus_sources) gdbus-threading.c
-gdbus_export_SOURCES = $(gdbus_sessionbus_sources) gdbus-export.c
-gdbus_error_SOURCES = $(gdbus_sessionbus_sources) gdbus-error.c
-gmenumodel_SOURCES = $(gdbus_sessionbus_sources) gmenumodel.c
-gdbus_close_pending_SOURCES = $(gdbus_sessionbus_sources) gdbus-close-pending.c
gdbus_test_codegen_SOURCES = $(gdbus_sessionbus_sources) gdbus-test-codegen.c
nodist_gdbus_test_codegen_SOURCES = gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
+gdbus_test_codegen_old_SOURCES = $(gdbus_sessionbus_sources) gdbus-test-codegen.c
+nodist_gdbus_test_codegen_old_SOURCES = gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
+gdbus_test_codegen_old_CPPFLAGS = $(AM_CPPFLAGS) -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36
+gdbus_threading_SOURCES = $(gdbus_sessionbus_sources) gdbus-threading.c
+gmenumodel_SOURCES = $(gdbus_sessionbus_sources) gmenumodel.c
+gnotification_SOURCES = $(gdbus_sessionbus_sources) gnotification.c gnotification-server.h gnotification-server.c
+BUILT_SOURCES += gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
gdbus-test-codegen.o: gdbus-test-codegen-generated.h
-gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c: test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen
+gdbus-test-codegen-generated.h: test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen
$(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
$(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \
--annotate "org.project.Bar::TestSignal[array_of_strings]" Key8 Value8 \
$(srcdir)/test-codegen.xml \
$(NULL)
+gdbus-test-codegen-generated.c: gdbus-test-codegen-generated.h
+ @: # Generated as side-effect of .h
EXTRA_DIST += test-codegen.xml
CLEANFILES += gdbus-test-codegen-generated.[ch] gdbus-test-codegen-generated-doc-*.xml
endif # OS_UNIX
endif # HAVE_DBUS_DAEMON
+tls_interaction_SOURCES = tls-interaction.c gtesttlsbackend.c gtesttlsbackend.h
+
# -----------------------------------------------------------------------------
if OS_WIN32
EXTRA_DIST += test.gresource.xml test1.txt test2.gresource.xml test2.txt test3.gresource.xml test3.txt test4.gresource.xml
CLEANFILES += test_resources.c test_resources2.[ch] plugin_resources.c test.gresource
+
+BUILT_SOURCES += giotypefuncs.c
+
+giotypefuncs.c: Makefile
+ $(AM_V_GEN) echo '#include <gio/gio.h>' > xgen-giosrc.c && \
+ echo "G_GNUC_BEGIN_IGNORE_DEPRECATIONS" > xgen-gio && \
+ ${CPP} $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-giosrc.c | \
+ $(GREP) -o '\bg_.*_get_type\b' | \
+ $(GREP) -v 'g_io_extension_get_type\|g_variant_get_type' | \
+ sort | uniq | \
+ $(SED) -e 's/^/*tp++ = /' -e 's/$$/ ();/' >> xgen-gio && \
+ cp xgen-gio $@ # && rm -f xgen-gio xgen-giosrc.c
+
+CLEANFILES += xgen-giosrc.c xgen-gio giotypefuncs.c
+
+if ENABLE_INSTALLED_TESTS
+install-data-hook:
+ $(AM_V_at) chmod a+x $(DESTDIR)$(installed_testdir)/x-content/win32-software/autorun.exe
+endif