Add testcases for <range> and <choices>
[platform/upstream/glib.git] / gio / tests / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2
3 INCLUDES =                      \
4         -g                      \
5         -I$(top_srcdir)         \
6         -I$(top_srcdir)/glib    \
7         -I$(top_srcdir)/gmodule \
8         -I$(top_srcdir)/gobject \
9         -I$(top_srcdir)/gio     \
10         $(GLIB_DEBUG_FLAGS)     \
11         -DSRCDIR=\""$(srcdir)"\"
12
13 noinst_PROGRAMS = $(TEST_PROGS) $(SAMPLE_PROGS)
14 noinst_DATA = $(MISC_STUFF)
15
16 progs_ldadd     =                                       \
17         $(top_builddir)/glib/libglib-2.0.la             \
18         $(top_builddir)/gobject/libgobject-2.0.la       \
19         $(top_builddir)/gio/libgio-2.0.la
20
21 TEST_PROGS +=                   \
22         memory-input-stream     \
23         memory-output-stream    \
24         readwrite               \
25         g-file                  \
26         g-file-info             \
27         converter-stream        \
28         data-input-stream       \
29         data-output-stream      \
30         g-icon                  \
31         buffered-input-stream   \
32         sleepy-stream           \
33         filter-streams          \
34         simple-async-result     \
35         srvtarget               \
36         contexts                \
37         gsettings               \
38         gschema-compile
39
40 SAMPLE_PROGS =                  \
41         resolver                \
42         socket-server           \
43         socket-client           \
44         echo-server             \
45         httpd                   \
46         send-data               \
47         filter-cat
48
49 if OS_UNIX
50 TEST_PROGS += live-g-file desktop-app-info unix-fd #unix-streams
51 endif
52
53 if OS_WIN32
54 TEST_PROGS += win32-streams
55 endif
56
57 memory_input_stream_SOURCES       = memory-input-stream.c
58 memory_input_stream_LDADD         = $(progs_ldadd)
59
60 memory_output_stream_SOURCES      = memory-output-stream.c
61 memory_output_stream_LDADD        = $(progs_ldadd)
62
63 g_file_SOURCES    = g-file.c
64 g_file_LDADD      = $(progs_ldadd)
65
66 readwrite_SOURCES         = readwrite.c
67 readwrite_LDADD   = $(progs_ldadd)
68
69 g_file_info_SOURCES     = g-file-info.c
70 g_file_info_LDADD       = $(progs_ldadd)
71
72 converter_stream_SOURCES        = converter-stream.c
73 converter_stream_LDADD          = $(progs_ldadd)
74
75 data_input_stream_SOURCES       = data-input-stream.c
76 data_input_stream_LDADD         = $(progs_ldadd)
77
78 data_output_stream_SOURCES      = data-output-stream.c
79 data_output_stream_LDADD        = $(progs_ldadd)
80
81 filter_cat_SOURCES      = filter-cat.c
82 filter_cat_LDADD        = $(progs_ldadd)
83
84 g_icon_SOURCES  = g-icon.c
85 g_icon_LDADD    = $(progs_ldadd)
86
87 buffered_input_stream_SOURCES   = buffered-input-stream.c
88 buffered_input_stream_LDADD     = $(progs_ldadd)
89
90 live_g_file_SOURCES       = live-g-file.c
91 live_g_file_LDADD         = $(progs_ldadd)
92
93 desktop_app_info_SOURCES  = desktop-app-info.c
94 desktop_app_info_LDADD    = $(progs_ldadd)
95
96 #unix_streams_SOURCES     = unix-streams.c
97 #unix_streams_LDADD       = $(progs_ldadd) \
98 #       $(top_builddir)/gthread/libgthread-2.0.la
99
100 win32_streams_SOURCES     = win32-streams.c
101 win32_streams_LDADD       = $(progs_ldadd) \
102         $(top_builddir)/gthread/libgthread-2.0.la
103
104 unix_fd_SOURCES   = unix-fd.c
105 unix_fd_LDADD     = $(progs_ldadd)
106
107 simple_async_result_SOURCES     = simple-async-result.c
108 simple_async_result_LDADD       = $(progs_ldadd)
109
110 sleepy_stream_SOURCES           = sleepy-stream.c
111 sleepy_stream_LDADD             = $(progs_ldadd)
112
113 filter_streams_SOURCES          = filter-streams.c
114 filter_streams_LDADD            = $(progs_ldadd)
115
116 resolver_SOURCES          = resolver.c
117 resolver_LDADD            = $(progs_ldadd) \
118         $(top_builddir)/gthread/libgthread-2.0.la
119
120 socket_server_SOURCES     = socket-server.c
121 socket_server_LDADD       = $(progs_ldadd) \
122         $(top_builddir)/gthread/libgthread-2.0.la
123
124 socket_client_SOURCES     = socket-client.c
125 socket_client_LDADD       = $(progs_ldadd) \
126         $(top_builddir)/gthread/libgthread-2.0.la
127
128 echo_server_SOURCES       = echo-server.c
129 echo_server_LDADD         = $(progs_ldadd) \
130         $(top_builddir)/gthread/libgthread-2.0.la
131
132 httpd_SOURCES             = httpd.c
133 httpd_LDADD               = $(progs_ldadd) \
134         $(top_builddir)/gthread/libgthread-2.0.la
135
136 send_data_SOURCES         = send-data.c
137 send_data_LDADD           = $(progs_ldadd) \
138         $(top_builddir)/gthread/libgthread-2.0.la
139
140 srvtarget_SOURCES         = srvtarget.c
141 srvtarget_LDADD           = $(progs_ldadd)
142
143 contexts_SOURCES          = contexts.c
144 contexts_LDADD            = $(progs_ldadd) \
145         $(top_builddir)/gthread/libgthread-2.0.la
146
147 gsettings_SOURCES         = gsettings.c
148 gsettings_LDADD           = $(progs_ldadd)
149
150 gschema_compile_SOURCES   = gschema-compile.c
151 gschema_compile_LDADD     = $(progs_ldadd)
152
153 EXTRA_DIST += \
154         socket-common.c                                         \
155         org.gtk.test.gschema                                    \
156         org.gtk.test.gschema.xml                                \
157         de.po                                                   \
158         schema-tests/bad-type.gschema.xml                       \
159         schema-tests/incomplete-list.gschema.xml                \
160         schema-tests/missing-quotes.gschema.xml                 \
161         schema-tests/no-default.gschema.xml                     \
162         schema-tests/wrong-category.gschema.xml                 \
163         schema-tests/overflow.gschema.xml                       \
164         schema-tests/bad-key.gschema.xml                        \
165         schema-tests/bad-key2.gschema.xml                       \
166         schema-tests/bad-key3.gschema.xml                       \
167         schema-tests/bad-key4.gschema.xml                       \
168         schema-tests/empty-key.gschema.xml                      \
169         schema-tests/array-default-not-in-choices.gschema.xml   \
170         schema-tests/bad-type.gschema.xml                       \
171         schema-tests/choice-missing-value.gschema.xml           \
172         schema-tests/choices-wrong-type.gschema.xml             \
173         schema-tests/default-not-in-choices.gschema.xml         \
174         schema-tests/default-out-of-range.gschema.xml           \
175         schema-tests/incomplete-list.gschema.xml                \
176         schema-tests/missing-quotes.gschema.xml                 \
177         schema-tests/no-default.gschema.xml                     \
178         schema-tests/overflow.gschema.xml                       \
179         schema-tests/range-missing-max.gschema.xml              \
180         schema-tests/range-missing-min.gschema.xml              \
181         schema-tests/range-wrong-type.gschema.xml               \
182         schema-tests/wrong-category.gschema.xml
183  
184 MISC_STUFF = gschemas.compiled test.mo
185
186 test.mo: de.po
187         $(MSGFMT) -o test.mo $(srcdir)/de.po; \
188         $(MKDIR_P) de/LC_MESSAGES; \
189         cp -f test.mo de/LC_MESSAGES
190
191 gschemas.compiled:
192         $(top_builddir)/gio/glib-compile-schemas --targetdir=$(abs_builddir) $(srcdir)
193
194 DISTCLEANFILES =                                        \
195         applications/mimeinfo.cache                     \
196         de/LC_MESSAGES/test.mo                          \
197         test.mo                                         \
198         gsettings.store                                 \
199         gschemas.compiled