Add pollable input/output streams
[platform/upstream/glib.git] / gio / tests / Makefile.am
index caab309..ad2273a 100644 (file)
@@ -4,11 +4,7 @@ include $(top_srcdir)/Makefile.decl
 
 INCLUDES =                     \
        -g                      \
-       -I$(top_srcdir)         \
-       -I$(top_srcdir)/glib    \
-       -I$(top_srcdir)/gmodule \
-       -I$(top_srcdir)/gobject \
-       -I$(top_srcdir)/gio     \
+       $(gio_INCLUDES)         \
        $(GLIB_DEBUG_FLAGS)     \
        -DSRCDIR=\""$(srcdir)"\"
 
@@ -22,6 +18,7 @@ progs_ldadd     =                                     \
        $(top_builddir)/gio/libgio-2.0.la
 
 TEST_PROGS +=                  \
+       actions                 \
        memory-input-stream     \
        memory-output-stream    \
        readwrite               \
@@ -32,8 +29,10 @@ TEST_PROGS +=                        \
        data-output-stream      \
        g-icon                  \
        buffered-input-stream   \
+       buffered-output-stream  \
        sleepy-stream           \
        filter-streams          \
+       volumemonitor           \
        simple-async-result     \
        srvtarget               \
        contexts                \
@@ -41,19 +40,30 @@ TEST_PROGS +=                       \
        gschema-compile         \
        async-close-output-stream \
        gdbus-addresses         \
+       network-address         \
+       gdbus-message           \
+       socket                  \
+       pollable                \
        $(NULL)
 
 if OS_UNIX
 TEST_PROGS +=                  \
        gdbus-connection        \
+       gdbus-connection-slow   \
        gdbus-names             \
        gdbus-proxy             \
+       gdbus-proxy-well-known-name \
        gdbus-introspection     \
        gdbus-threading         \
        gdbus-export            \
        gdbus-error             \
        gdbus-peer              \
        gdbus-exit-on-close     \
+       gdbus-non-socket        \
+       gdbus-bz627724          \
+       appinfo                 \
+       contenttype             \
+       file                    \
        $(NULL)
 endif
 
@@ -73,11 +83,18 @@ SAMPLE_PROGS =                              \
        gdbus-example-subtree           \
        gdbus-example-peer              \
        gdbus-example-proxy-subclass    \
+       gdbus-connection-flush-helper   \
+       appinfo-test                    \
+       proxy                           \
+       gapplication-example-open       \
+       gapplication-example-cmdline    \
+       gapplication-example-cmdline2   \
+       gapplication-example-actions    \
        $(NULL)
 
 
 if OS_UNIX
-TEST_PROGS += live-g-file desktop-app-info unix-fd #unix-streams
+TEST_PROGS += live-g-file desktop-app-info unix-fd unix-streams gapplication
 SAMPLE_PROGS +=        gdbus-example-unix-fd-client
 endif
 
@@ -85,6 +102,8 @@ if OS_WIN32
 TEST_PROGS += win32-streams
 endif
 
+actions_LDADD    = $(progs_ldadd)
+
 memory_input_stream_SOURCES      = memory-input-stream.c
 memory_input_stream_LDADD        = $(progs_ldadd)
 
@@ -121,15 +140,18 @@ g_icon_LDADD      = $(progs_ldadd)
 buffered_input_stream_SOURCES  = buffered-input-stream.c
 buffered_input_stream_LDADD    = $(progs_ldadd)
 
+buffered_output_stream_SOURCES = buffered-output-stream.c
+buffered_output_stream_LDADD   = $(progs_ldadd)
+
 live_g_file_SOURCES      = live-g-file.c
 live_g_file_LDADD        = $(progs_ldadd)
 
 desktop_app_info_SOURCES  = desktop-app-info.c
 desktop_app_info_LDADD   = $(progs_ldadd)
 
-#unix_streams_SOURCES    = unix-streams.c
-#unix_streams_LDADD      = $(progs_ldadd) \
-#      $(top_builddir)/gthread/libgthread-2.0.la
+unix_streams_SOURCES     = unix-streams.c
+unix_streams_LDADD       = $(progs_ldadd) \
+       $(top_builddir)/gthread/libgthread-2.0.la
 
 win32_streams_SOURCES    = win32-streams.c
 win32_streams_LDADD      = $(progs_ldadd) \
@@ -147,6 +169,9 @@ sleepy_stream_LDADD         = $(progs_ldadd)
 filter_streams_SOURCES         = filter-streams.c
 filter_streams_LDADD           = $(progs_ldadd)
 
+volumemonitor_SOURCES          = volumemonitor.c
+volumemonitor_LDADD            = $(progs_ldadd)
+
 resolver_SOURCES         = resolver.c
 resolver_LDADD           = $(progs_ldadd) \
        $(top_builddir)/gthread/libgthread-2.0.la
@@ -174,6 +199,15 @@ send_data_LDADD              = $(progs_ldadd) \
 srvtarget_SOURCES        = srvtarget.c
 srvtarget_LDADD                  = $(progs_ldadd)
 
+network_address_SOURCE   = network-address.c
+network_address_LDADD    = $(progs_ldadd)
+
+socket_SOURCE            = socket.c
+socket_LDADD             = $(progs_ldadd)
+
+pollable_SOURCE                  = pollable.c
+pollable_LDADD           = $(progs_ldadd)
+
 contexts_SOURCES         = contexts.c
 contexts_LDADD           = $(progs_ldadd) \
        $(top_builddir)/gthread/libgthread-2.0.la
@@ -194,15 +228,27 @@ endif
 gdbus_addresses_SOURCES = gdbus-addresses.c
 gdbus_addresses_LDADD = $(progs_ldadd)
 
+gdbus_bz627724_SOURCES = gdbus-bz627724.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
+gdbus_bz627724_LDADD = $(progs_ldadd)
+
 gdbus_connection_SOURCES = gdbus-connection.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
 gdbus_connection_LDADD = $(progs_ldadd)
 
+gdbus_connection_slow_SOURCES = gdbus-connection-slow.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
+gdbus_connection_slow_LDADD = $(progs_ldadd)
+
+gdbus_message_SOURCES = gdbus-message.c
+gdbus_message_LDADD = $(progs_ldadd)
+
 gdbus_names_SOURCES = gdbus-names.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
 gdbus_names_LDADD = $(progs_ldadd)
 
 gdbus_proxy_SOURCES = gdbus-proxy.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
 gdbus_proxy_LDADD = $(progs_ldadd)
 
+gdbus_proxy_well_known_name_SOURCES = gdbus-proxy-well-known-name.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
+gdbus_proxy_well_known_name_LDADD = $(progs_ldadd)
+
 gdbus_introspection_SOURCES = gdbus-introspection.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
 gdbus_introspection_LDADD = $(progs_ldadd)
 
@@ -215,9 +261,12 @@ gdbus_export_LDADD = $(progs_ldadd)
 gdbus_error_SOURCES = gdbus-error.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
 gdbus_error_LDADD = $(progs_ldadd)
 
-gdbus_peer_SOURCES = gdbus-peer.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
+gdbus_peer_SOURCES = gdbus-peer.c gdbus-tests.h gdbus-tests.c
 gdbus_peer_LDADD = $(progs_ldadd)
 
+gdbus_non_socket_SOURCES = gdbus-non-socket.c gdbus-tests.h gdbus-tests.c
+gdbus_non_socket_LDADD = $(progs_ldadd)
+
 gdbus_exit_on_close_SOURCES = gdbus-exit-on-close.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
 gdbus_exit_on_close_LDADD = $(progs_ldadd)
 
@@ -248,51 +297,137 @@ gdbus_example_proxy_subclass_LDADD   = $(progs_ldadd)
 gdbus_example_export_SOURCES = gdbus-example-export.c
 gdbus_example_export_LDADD   = $(progs_ldadd)
 
+gdbus_connection_flush_helper_SOURCES = gdbus-connection-flush-helper.c
+gdbus_connection_flush_helper_LDADD = $(progs_ldadd)
+
+appinfo_SOURCES = appinfo.c
+appinfo_LDADD   = $(progs_ldadd)
+
+appinfo_test_SOURCES = appinfo-test.c
+appinfo_test_LDADD   = $(progs_ldadd)
+
+contenttype_SOURCES = contenttype.c
+contenttype_LDADD   = $(progs_ldadd)
+
+file_SOURCES = file.c
+file_LDADD   = $(progs_ldadd)
+
+gapplication_SOURCES = gapplication.c gdbus-sessionbus.c
+gapplication_LDADD = $(progs_ldadd)
+
+gapplication_example_open_SOURCES = gapplication-example-open.c
+gapplication_example_open_LDADD   = $(progs_ldadd)
+
+gapplication_example_cmdline_SOURCES = gapplication-example-cmdline.c
+gapplication_example_cmdline_LDADD   = $(progs_ldadd)
+
+gapplication_example_cmdline2_SOURCES = gapplication-example-cmdline2.c
+gapplication_example_cmdline2_LDADD   = $(progs_ldadd)
+
+gapplication_example_actions_SOURCES = gapplication-example-actions.c
+gapplication_example_actions_LDADD   = $(progs_ldadd)
+
+schema_tests = \
+       schema-tests/array-default-not-in-choices.gschema.xml           \
+       schema-tests/bad-choice.gschema.xml                             \
+       schema-tests/bad-key.gschema.xml                                \
+       schema-tests/bad-key2.gschema.xml                               \
+       schema-tests/bad-key3.gschema.xml                               \
+       schema-tests/bad-key4.gschema.xml                               \
+       schema-tests/bad-type.gschema.xml                               \
+       schema-tests/bare-alias.gschema.xml                             \
+       schema-tests/choice-alias.gschema.xml                           \
+       schema-tests/choice-bad.gschema.xml                             \
+       schema-tests/choice-badtype.gschema.xml                         \
+       schema-tests/choice-invalid-alias.gschema.xml                   \
+       schema-tests/choice-missing-value.gschema.xml                   \
+       schema-tests/choice-shadowed-alias.gschema.xml                  \
+       schema-tests/choice-upside-down.gschema.xml                     \
+       schema-tests/choice.gschema.xml                                 \
+       schema-tests/choices-wrong-type.gschema.xml                     \
+       schema-tests/default-in-aliases.gschema.xml                     \
+       schema-tests/default-not-in-choices.gschema.xml                 \
+       schema-tests/default-out-of-range.gschema.xml                   \
+       schema-tests/empty-key.gschema.xml                              \
+       schema-tests/enum-with-aliases.gschema.xml                      \
+       schema-tests/enum-with-bad-default.gschema.xml                  \
+       schema-tests/enum-with-chained-alias.gschema.xml                \
+       schema-tests/enum-with-choice.gschema.xml                       \
+       schema-tests/enum-with-invalid-alias.gschema.xml                \
+       schema-tests/enum-with-repeated-alias.gschema.xml               \
+       schema-tests/enum-with-repeated-nick.gschema.xml                \
+       schema-tests/enum-with-repeated-value.gschema.xml               \
+       schema-tests/enum-with-shadow-alias.gschema.xml                 \
+       schema-tests/enum.gschema.xml                                   \
+       schema-tests/flags-aliased-default.gschema.xml                  \
+       schema-tests/flags-bad-default.gschema.xml                      \
+       schema-tests/flags-more-than-one-bit.gschema.xml                \
+       schema-tests/flags-with-enum-attr.gschema.xml                   \
+       schema-tests/flags-with-enum-tag.gschema.xml                    \
+       schema-tests/extend-and-shadow-indirect.gschema.xml             \
+       schema-tests/extend-and-shadow.gschema.xml                      \
+       schema-tests/extend-missing.gschema.xml                         \
+       schema-tests/extend-nonlist.gschema.xml                         \
+       schema-tests/extend-self.gschema.xml                            \
+       schema-tests/extend-wrong-list-indirect.gschema.xml             \
+       schema-tests/extend-wrong-list.gschema.xml                      \
+       schema-tests/extending.gschema.xml                              \
+       schema-tests/from-docs.gschema.xml                              \
+       schema-tests/incomplete-list.gschema.xml                        \
+       schema-tests/invalid-path.gschema.xml                           \
+       schema-tests/key-in-list-indirect.gschema.xml                   \
+       schema-tests/key-in-list.gschema.xml                            \
+       schema-tests/list-of-missing.gschema.xml                        \
+       schema-tests/missing-quotes.gschema.xml                         \
+       schema-tests/no-default.gschema.xml                             \
+       schema-tests/overflow.gschema.xml                               \
+       schema-tests/override-missing.gschema.xml                       \
+       schema-tests/override-range-error.gschema.xml                   \
+       schema-tests/override-then-key.gschema.xml                      \
+       schema-tests/override-twice.gschema.xml                         \
+       schema-tests/override-type-error.gschema.xml                    \
+       schema-tests/override.gschema.xml                               \
+       schema-tests/range-badtype.gschema.xml                          \
+       schema-tests/range-default-high.gschema.xml                     \
+       schema-tests/range-default-low.gschema.xml                      \
+       schema-tests/range-high-default.gschema.xml                     \
+       schema-tests/range-low-default.gschema.xml                      \
+       schema-tests/range-missing-max.gschema.xml                      \
+       schema-tests/range-missing-min.gschema.xml                      \
+       schema-tests/range-parse-error.gschema.xml                      \
+       schema-tests/range-wrong-type.gschema.xml                       \
+       schema-tests/range.gschema.xml                                  \
+       schema-tests/wrong-category.gschema.xml
+
+proxy_SOURCES = proxy.c
+proxy_LDADD   = $(progs_ldadd) \
+       $(top_builddir)/gthread/libgthread-2.0.la
+
 EXTRA_DIST += \
-       socket-common.c                                         \
-       org.gtk.test.gschema                                    \
-       org.gtk.test.gschema.xml                                \
-       de.po                                                   \
-       schema-tests/bad-type.gschema.xml                       \
-       schema-tests/incomplete-list.gschema.xml                \
-       schema-tests/missing-quotes.gschema.xml                 \
-       schema-tests/no-default.gschema.xml                     \
-       schema-tests/wrong-category.gschema.xml                 \
-       schema-tests/overflow.gschema.xml                       \
-       schema-tests/bad-key.gschema.xml                        \
-       schema-tests/bad-key2.gschema.xml                       \
-       schema-tests/bad-key3.gschema.xml                       \
-       schema-tests/bad-key4.gschema.xml                       \
-       schema-tests/empty-key.gschema.xml                      \
-       schema-tests/array-default-not-in-choices.gschema.xml   \
-       schema-tests/bad-type.gschema.xml                       \
-       schema-tests/choice-missing-value.gschema.xml           \
-       schema-tests/choices-wrong-type.gschema.xml             \
-       schema-tests/default-not-in-choices.gschema.xml         \
-       schema-tests/default-out-of-range.gschema.xml           \
-       schema-tests/incomplete-list.gschema.xml                \
-       schema-tests/missing-quotes.gschema.xml                 \
-       schema-tests/no-default.gschema.xml                     \
-       schema-tests/overflow.gschema.xml                       \
-       schema-tests/range-missing-max.gschema.xml              \
-       schema-tests/range-missing-min.gschema.xml              \
-       schema-tests/range-wrong-type.gschema.xml               \
-       schema-tests/wrong-category.gschema.xml                 \
+       socket-common.c                 \
+       org.gtk.test.gschema            \
+       org.gtk.test.gschema.xml        \
+       testenum.h                      \
+       enums.xml.template              \
+       de.po                           \
+       $(schema_tests)                 \
+       appinfo-test.desktop            \
+       appinfo-test2.desktop           \
+       appinfo-test-gnome.desktop      \
+       appinfo-test-notgnome.desktop   \
        gdbus-testserver.py
-MISC_STUFF = gschemas.compiled test.mo
+
+MISC_STUFF = test.mo
 
 test.mo: de.po
        $(MSGFMT) -o test.mo $(srcdir)/de.po; \
        $(MKDIR_P) de/LC_MESSAGES; \
        cp -f test.mo de/LC_MESSAGES
 
-gschemas.compiled:
-       $(top_builddir)/gio/glib-compile-schemas --targetdir=$(abs_builddir) $(srcdir)
-
-DISTCLEANFILES =                                        \
-       applications/mimeinfo.cache                     \
-       de/LC_MESSAGES/test.mo                          \
-       test.mo                                         \
-       gsettings.store                                 \
+DISTCLEANFILES = \
+       applications/mimeinfo.cache     \
+       org.gtk.test.enums.xml          \
+       de/LC_MESSAGES/test.mo          \
+       test.mo                         \
+       gsettings.store                 \
        gschemas.compiled