1 | if USING_OAF |
---|
2 | oaf_programs=test-async-directory_corba test-async_corba test-channel_corba |
---|
3 | else |
---|
4 | oaf_programs= |
---|
5 | endif |
---|
6 | |
---|
7 | SUBDIRS = gnome-file-selection |
---|
8 | |
---|
9 | INCLUDES = \ |
---|
10 | -I$(top_srcdir) \ |
---|
11 | -I$(top_srcdir)/intl \ |
---|
12 | -I$(top_builddir)/intl \ |
---|
13 | -I$(top_srcdir)/libgnomevfs \ |
---|
14 | $(OAF_CFLAGS) \ |
---|
15 | $(GNOME_INCLUDEDIR) \ |
---|
16 | $(GTK_CFLAGS) \ |
---|
17 | $(VFS_CFLAGS) $(WERROR) |
---|
18 | |
---|
19 | noinst_PROGRAMS = \ |
---|
20 | test-async-cancel \ |
---|
21 | test-async-directory_pthread \ |
---|
22 | test-async_pthread \ |
---|
23 | test-channel_pthread \ |
---|
24 | test-directory \ |
---|
25 | test-directory-visit \ |
---|
26 | test-escape \ |
---|
27 | test-find-directory \ |
---|
28 | test-info \ |
---|
29 | test-mime \ |
---|
30 | test-mime-handlers \ |
---|
31 | test-mime-handlers-set \ |
---|
32 | test-seek \ |
---|
33 | test-symlinks \ |
---|
34 | test-sync \ |
---|
35 | test-sync-write \ |
---|
36 | test-sync-create \ |
---|
37 | test-xfer \ |
---|
38 | test-shell \ |
---|
39 | test-uri \ |
---|
40 | test-unlink \ |
---|
41 | test-dirop \ |
---|
42 | test-mime-info \ |
---|
43 | $(oaf_programs) |
---|
44 | |
---|
45 | test_files= \ |
---|
46 | test.input \ |
---|
47 | test.cmds \ |
---|
48 | test.output |
---|
49 | |
---|
50 | if HAVE_LIBEFS |
---|
51 | auto_tests=auto-test |
---|
52 | else |
---|
53 | auto_tests= |
---|
54 | endif |
---|
55 | |
---|
56 | # Set up the environment so the tests can find the back end. |
---|
57 | TESTS_ENVIRONMENT = LD_LIBRARY_PATH=$(top_builddir)/libgnomevfs-pthread/.libs/ |
---|
58 | TESTS = test-async-cancel test-escape test-uri $(auto_tests) |
---|
59 | |
---|
60 | libraries = \ |
---|
61 | $(top_builddir)/libgnomevfs/libgnomevfs.la \ |
---|
62 | $(GNOME_LIBDIR) \ |
---|
63 | $(GNOMEUI_LIBS) \ |
---|
64 | $(GNOMEGNORBA_LIBS) \ |
---|
65 | $(GCONF_LIBS) \ |
---|
66 | $(LIBEFS_LIBS) |
---|
67 | |
---|
68 | test-async_pthread.o: test-async.c |
---|
69 | $(COMPILE) -DWITH_PTHREAD -o $@ -c $< |
---|
70 | test_async_pthread_SOURCES = dummy.c |
---|
71 | test_async_pthread_LDADD = \ |
---|
72 | test-async_pthread.o \ |
---|
73 | $(libraries) \ |
---|
74 | $(top_builddir)/libgnomevfs-pthread/libgnomevfs-pthread.la |
---|
75 | test_async_pthread_LDFLAGS = |
---|
76 | |
---|
77 | test-async_corba.o: test-async.c |
---|
78 | $(COMPILE) -DWITH_CORBA -o $@ -c $< |
---|
79 | test_async_corba_SOURCES = dummy.c |
---|
80 | test_async_corba_LDADD = \ |
---|
81 | test-async_corba.o \ |
---|
82 | $(libraries) \ |
---|
83 | $(top_builddir)/libgnomevfs-corba/libgnomevfs-corba.la |
---|
84 | test_async_corba_LDFLAGS = |
---|
85 | |
---|
86 | test-async-directory_pthread.o: test-async-directory.c |
---|
87 | $(COMPILE) -DWITH_PTHREAD -o $@ -c $< |
---|
88 | test_async_directory_pthread_SOURCES = dummy.c |
---|
89 | test_async_directory_pthread_LDADD = \ |
---|
90 | test-async-directory_pthread.o \ |
---|
91 | $(libraries) \ |
---|
92 | $(top_builddir)/libgnomevfs-pthread/libgnomevfs-pthread.la |
---|
93 | test_async_directory_pthread_LDFLAGS = |
---|
94 | |
---|
95 | test-async-directory_corba.o: test-async-directory.c |
---|
96 | $(COMPILE) -DWITH_CORBA -o $@ -c $< |
---|
97 | test_async_directory_corba_SOURCES = dummy.c |
---|
98 | test_async_directory_corba_LDADD = \ |
---|
99 | test-async-directory_corba.o \ |
---|
100 | $(libraries) \ |
---|
101 | $(top_builddir)/libgnomevfs-corba/libgnomevfs-corba.la |
---|
102 | test_async_directory_corba_LDFLAGS = |
---|
103 | |
---|
104 | test-channel_corba.o: test-channel.c |
---|
105 | $(COMPILE) -DWITH_CORBA -o $@ -c $< |
---|
106 | test_channel_corba_SOURCES = dummy.c |
---|
107 | test_channel_corba_LDADD = \ |
---|
108 | test-channel_corba.o \ |
---|
109 | $(libraries) \ |
---|
110 | $(top_builddir)/libgnomevfs-corba/libgnomevfs-corba.la |
---|
111 | test_channel_corba_LDFLAGS = |
---|
112 | |
---|
113 | test-channel_pthread.o: test-channel.c |
---|
114 | $(COMPILE) -DWITH_PTHREAD -o $@ -c $< |
---|
115 | test_channel_pthread_SOURCES = dummy.c |
---|
116 | test_channel_pthread_LDADD = \ |
---|
117 | test-channel_pthread.o \ |
---|
118 | $(libraries) \ |
---|
119 | $(top_builddir)/libgnomevfs-pthread/libgnomevfs-pthread.la |
---|
120 | test_channel_pthread_LDFLAGS = |
---|
121 | |
---|
122 | test_seek_SOURCES = test-seek.c |
---|
123 | test_seek_LDADD = $(libraries) |
---|
124 | test_seek_LDFLAGS = |
---|
125 | |
---|
126 | test_shell_SOURCES = test-shell.c |
---|
127 | test_shell_LDADD = $(libraries) |
---|
128 | test_shell_LDFLAGS = |
---|
129 | |
---|
130 | test_info_SOURCES = test-info.c |
---|
131 | test_info_LDADD = $(libraries) |
---|
132 | test_info_LDFLAGS = |
---|
133 | |
---|
134 | test_mime_SOURCES = test-mime.c |
---|
135 | test_mime_LDADD = $(libraries) |
---|
136 | test_mime_LDFLAGS = |
---|
137 | |
---|
138 | test_mime_handlers_SOURCES = test-mime-handlers.c |
---|
139 | test_mime_handlers_LDADD = $(libraries) |
---|
140 | test_mime_handlers_LDFLAGS = |
---|
141 | |
---|
142 | test_mime_handlers_set_SOURCES = test-mime-handlers-set.c |
---|
143 | test_mime_handlers_set_LDADD = $(libraries) |
---|
144 | test_mime_handlers_set_LDFLAGS = |
---|
145 | |
---|
146 | test_xfer_SOURCES = test-xfer.c |
---|
147 | test_xfer_LDADD = $(libraries) |
---|
148 | test_xfer_LDFLAGS = |
---|
149 | |
---|
150 | test_directory_SOURCES = test-directory.c |
---|
151 | test_directory_LDADD = $(libraries) |
---|
152 | test_directory_LDFLAGS = |
---|
153 | |
---|
154 | test_directory_visit_SOURCES = test-directory-visit.c |
---|
155 | test_directory_visit_LDADD = $(libraries) |
---|
156 | test_directory_visit_LDFLAGS = |
---|
157 | |
---|
158 | test_symlinks_SOURCES = test-symlinks.c |
---|
159 | test_symlinks_LDADD = $(libraries) |
---|
160 | test_symlinks_LDFLAGS = |
---|
161 | |
---|
162 | test_sync_SOURCES = test-sync.c |
---|
163 | test_sync_LDADD = $(libraries) |
---|
164 | test_sync_LDFLAGS = |
---|
165 | |
---|
166 | test_sync_write_SOURCES = test-sync-write.c |
---|
167 | test_sync_write_LDADD = $(libraries) |
---|
168 | test_sync_write_LDFLAGS = |
---|
169 | |
---|
170 | test_sync_create_SOURCES = test-sync-create.c |
---|
171 | test_sync_create_LDADD = $(libraries) |
---|
172 | test_sync_create_LDFLAGS = |
---|
173 | |
---|
174 | test_async_cancel_SOURCES = test-async-cancel.c |
---|
175 | test_async_cancel_LDADD = $(libraries) |
---|
176 | test_async_cancel_LDFLAGS = |
---|
177 | |
---|
178 | test_escape_SOURCES = test-escape.c |
---|
179 | test_escape_LDADD = $(libraries) |
---|
180 | test_escape_LDFLAGS = |
---|
181 | |
---|
182 | test_uri_SOURCES = test-uri.c |
---|
183 | test_uri_LDADD = $(libraries) |
---|
184 | test_uri_LDFLAGS = |
---|
185 | |
---|
186 | test_unlink_SOURCES = test-unlink.c |
---|
187 | test_unlink_LDADD = $(libraries) |
---|
188 | test_unlink_LDFLAGS = |
---|
189 | |
---|
190 | test_dirop_SOURCES = test-dirop.c |
---|
191 | test_dirop_LDADD = $(libraries) |
---|
192 | test_dirop_LDFLAGS = |
---|
193 | |
---|
194 | test_find_directory_SOURCES = test-find-directory.c |
---|
195 | test_find_directory_LDADD = $(libraries) |
---|
196 | test_find_directory_LDFLAGS = |
---|
197 | |
---|
198 | test_mime_info_SOURCES = test-mime-info.c |
---|
199 | test_mime_info_LDADD = $(libraries) |
---|
200 | test_mime_info_LDFLAGS = |
---|
201 | |
---|
202 | |
---|
203 | EXTRA_DIST = \ |
---|
204 | $(test_files) \ |
---|
205 | test-async-directory.c \ |
---|
206 | test-async.c \ |
---|
207 | test-channel.c \ |
---|
208 | test-directory-visit.c \ |
---|
209 | test-directory.c \ |
---|
210 | test-symlinks.c \ |
---|
211 | test-seek.c \ |
---|
212 | test-sync.c \ |
---|
213 | test-sync-write.c \ |
---|
214 | test-sync-create.c \ |
---|
215 | test-xfer.c \ |
---|
216 | test-mime-info.c \ |
---|
217 | vfs-run.in |
---|