]> git.saurik.com Git - wxWidgets.git/blob - tests/test.bkl
Extract PipeIOHandler class into a header and rename to wxWakeUpPipe.
[wxWidgets.git] / tests / test.bkl
1 <?xml version="1.0" ?>
2 <!-- $Id$ -->
3
4 <makefile>
5 <!--
6 The use of PCH is disabled for samples by default but we do want to use
7 them for the test as this dramatically speeds up its compilation.
8 -->
9 <set var="WX_ENABLE_PRECOMP_HEADERS">1</set>
10
11 <include file="../build/bakefiles/common_samples.bkl"/>
12
13 <template id="wx_test">
14 <cppflags>$(CPPUNIT_CFLAGS)</cppflags>
15 <ldflags>$(CPPUNIT_LIBS)</ldflags>
16
17 <if cond="WX_DISABLE_PRECOMP_HEADERS=='0'">
18 <if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'">
19 <sources>dummy.cpp</sources>
20 <precomp-headers-gen>dummy.cpp</precomp-headers-gen>
21 </if>
22 <precomp-headers-header>testprec.h</precomp-headers-header>
23 <precomp-headers>on</precomp-headers>
24 <precomp-headers-file>testprec_$(id)</precomp-headers-file>
25 </if>
26 </template>
27
28 <exe id="test" template="wx_sample_console,wx_test"
29 template_append="wx_append_base">
30 <sources>
31 test.cpp
32 any/anytest.cpp
33 archive/archivetest.cpp
34 archive/ziptest.cpp
35 archive/tartest.cpp
36 arrays/arrays.cpp
37 base64/base64.cpp
38 cmdline/cmdlinetest.cpp
39 config/fileconf.cpp
40 config/regconf.cpp
41 datetime/datetimetest.cpp
42 events/evthandler.cpp
43 events/evtlooptest.cpp
44 events/evtsource.cpp
45 events/stopwatch.cpp
46 events/timertest.cpp
47 exec/exec.cpp
48 file/dir.cpp
49 file/filefn.cpp
50 file/filetest.cpp
51 filekind/filekind.cpp
52 filename/filenametest.cpp
53 filesys/filesystest.cpp
54 fontmap/fontmaptest.cpp
55 formatconverter/formatconvertertest.cpp
56 fswatcher/fswatchertest.cpp
57 hashes/hashes.cpp
58 interactive/output.cpp
59 interactive/input.cpp
60 intl/intltest.cpp
61 lists/lists.cpp
62 log/logtest.cpp
63 longlong/longlongtest.cpp
64 mbconv/convautotest.cpp
65 mbconv/mbconvtest.cpp
66 misc/dynamiclib.cpp
67 misc/environ.cpp
68 misc/metatest.cpp
69 misc/misctests.cpp
70 misc/module.cpp
71 misc/pathlist.cpp
72 misc/typeinfotest.cpp
73 net/ipc.cpp
74 net/socket.cpp
75 regex/regextest.cpp
76 regex/wxregextest.cpp
77 scopeguard/scopeguardtest.cpp
78 strings/iostream.cpp
79 strings/numformatter.cpp
80 strings/strings.cpp
81 strings/stdstrings.cpp
82 strings/tokenizer.cpp
83 strings/unichar.cpp
84 strings/unicode.cpp
85 strings/vararg.cpp
86 strings/crt.cpp
87 strings/vsnprintf.cpp
88 streams/bstream.cpp
89 streams/datastreamtest.cpp
90 streams/ffilestream.cpp
91 streams/fileback.cpp
92 streams/filestream.cpp
93 streams/iostreams.cpp
94 streams/largefile.cpp
95 streams/memstream.cpp
96 streams/socketstream.cpp
97 streams/sstream.cpp
98 streams/stdstream.cpp
99 streams/tempfile.cpp
100 streams/textstreamtest.cpp
101 streams/zlibstream.cpp
102 textfile/textfiletest.cpp
103 thread/atomic.cpp
104 thread/misc.cpp
105 thread/queue.cpp
106 thread/tls.cpp
107 uris/ftp.cpp
108 uris/uris.cpp
109 uris/url.cpp
110 vectors/vectors.cpp
111 weakref/evtconnection.cpp
112 weakref/weakref.cpp
113 xlocale/xlocale.cpp
114 xml/xmltest.cpp
115 </sources>
116 <wx-lib>net</wx-lib>
117 <wx-lib>xml</wx-lib>
118 <wx-lib>base</wx-lib>
119 </exe>
120
121
122 <exe id="test_gui" template="wx_sample,wx_test"
123 template_append="wx_append"
124 cond="USE_GUI=='1'">
125
126 <!-- link against GUI libraries, but be a console app: -->
127 <app-type>console</app-type>
128
129 <sources>
130 asserthelper.cpp
131 test.cpp
132 testableframe.cpp
133 geometry/rect.cpp
134 geometry/size.cpp
135 geometry/point.cpp
136 geometry/region.cpp
137 graphics/bitmap.cpp
138 graphics/colour.cpp
139 graphics/ellipsization.cpp
140 graphics/measuring.cpp
141 graphics/affinematrix.cpp
142 config/config.cpp
143 controls/bitmapcomboboxtest.cpp
144 controls/bitmaptogglebuttontest.cpp
145 controls/bookctrlbasetest.cpp
146 controls/buttontest.cpp
147 controls/checkboxtest.cpp
148 controls/checklistboxtest.cpp
149 controls/choicebooktest.cpp
150 controls/choicetest.cpp
151 controls/comboboxtest.cpp
152 controls/dataviewctrltest.cpp
153 controls/datepickerctrltest.cpp
154 controls/frametest.cpp
155 controls/gaugetest.cpp
156 controls/gridtest.cpp
157 controls/headerctrltest.cpp
158 controls/htmllboxtest.cpp
159 controls/hyperlinkctrltest.cpp
160 controls/itemcontainertest.cpp
161 controls/label.cpp
162 controls/listbasetest.cpp
163 controls/listbooktest.cpp
164 controls/listboxtest.cpp
165 controls/listctrltest.cpp
166 controls/listviewtest.cpp
167 controls/markuptest.cpp
168 controls/notebooktest.cpp
169 controls/ownerdrawncomboboxtest.cpp
170 controls/pickerbasetest.cpp
171 controls/pickertest.cpp
172 controls/radioboxtest.cpp
173 controls/radiobuttontest.cpp
174 controls/rearrangelisttest.cpp
175 controls/richtextctrltest.cpp
176 controls/searchctrltest.cpp
177 controls/simplebooktest.cpp
178 controls/slidertest.cpp
179 controls/spinctrldbltest.cpp
180 controls/spinctrltest.cpp
181 controls/textctrltest.cpp
182 controls/textentrytest.cpp
183 controls/togglebuttontest.cpp
184 controls/toolbooktest.cpp
185 controls/treebooktest.cpp
186 controls/treectrltest.cpp
187 controls/treelistctrltest.cpp
188 controls/virtlistctrltest.cpp
189 controls/webtest.cpp
190 controls/windowtest.cpp
191 controls/dialogtest.cpp
192 events/clone.cpp
193 <!--
194 Duplicate this file here to test GUI event loops too.
195 -->
196 events/evtlooptest.cpp
197 events/propagation.cpp
198 events/keyboard.cpp
199 font/fonttest.cpp
200 image/image.cpp
201 image/rawbmp.cpp
202 html/htmlparser.cpp
203 html/htmlwindow.cpp
204 menu/accelentry.cpp
205 menu/menu.cpp
206 misc/guifuncs.cpp
207 misc/selstoretest.cpp
208 misc/garbage.cpp
209 misc/settings.cpp
210 <!--
211 This one is intentionally duplicated here (it is also part of
212 non-GUI test) as sockets behave differently in console and GUI
213 applications.
214 -->
215 net/socket.cpp
216 sizers/boxsizer.cpp
217 sizers/wrapsizer.cpp
218 toplevel/toplevel.cpp
219 validators/valnum.cpp
220 window/clientsize.cpp
221 window/setsize.cpp
222 xml/xrctest.cpp
223 </sources>
224 <!--
225 Can't use <wx-lib> here as it doesn't work with conditionally
226 defined variables, so fall back <sys-lib> as we must not link with
227 inexisting webview library to be able to run tests even if
228 wxWebView is not available.
229 -->
230 <sys-lib>$(WXLIB_WEBVIEW)</sys-lib>
231 <wx-lib>richtext</wx-lib>
232 <wx-lib>media</wx-lib>
233 <wx-lib>xrc</wx-lib>
234 <wx-lib>xml</wx-lib>
235 <wx-lib>adv</wx-lib>
236 <wx-lib>html</wx-lib>
237 <wx-lib>core</wx-lib>
238 <wx-lib>net</wx-lib>
239 <wx-lib>base</wx-lib>
240 </exe>
241
242
243 <wx-data id="data">
244 <files>testdata.fc</files>
245
246 <!-- test data for image/image.cpp test unit: -->
247 <files>horse.ani horse.bmp horse.cur horse.gif horse.ico horse.jpg
248 horse.pcx horse.png horse.pnm horse.tga horse.tif horse.xpm</files>
249 </wx-data>
250
251 <wx-data id="data-images">
252 <srcdir>$(SRCDIR)/image</srcdir>
253 <dstdir>image</dstdir>
254 <files>
255 horse_grey.bmp horse_grey_flipped.bmp
256 horse_rle4.bmp horse_rle4_flipped.bmp
257 horse_rle8.bmp horse_rle8_flipped.bmp
258
259 horse_bicubic_50x50.png
260 horse_bicubic_100x100.png
261 horse_bicubic_150x150.png
262 horse_bicubic_300x300.png
263
264 horse_bilinear_50x50.png
265 horse_bilinear_100x100.png
266 horse_bilinear_150x150.png
267 horse_bilinear_300x300.png
268
269 horse_box_average_50x50.png
270 horse_box_average_100x100.png
271 horse_box_average_150x150.png
272 horse_box_average_300x300.png
273 </files>
274 </wx-data>
275
276 <template id="catalog">
277 <dstdir>$(BUILDDIR)/intl/$(id)</dstdir>
278 <srcdir>$(SRCDIR)/intl/$(id)</srcdir>
279 <files>internat.po internat.mo</files>
280 </template>
281
282 <wx-data id="fr" template="catalog"/>
283
284
285 <fragment format="autoconf">
286 # notice the ugly hack with using CXXWARNINGS: we can't use CPPFLAGS as
287 # currently the value in the makefile would be ignored if we did, but
288 # warnings don't matter when we expect compilation to fail anyhow so we can
289 # use this variable to enable the compilation of code which is supposed to
290 # fail
291 failtest: failtest_combobox failtest_evthandler
292
293 failtest_combobox:
294 @$(RM) test_gui_comboboxtest.o
295 if $(MAKE) CXXWARNINGS=-DTEST_INVALID_COMBOBOX_ISEMPTY test_gui_comboboxtest.o 2>/dev/null; then \
296 echo "*** Compilation with TEST_INVALID_COMBOBOX_ISEMPTY unexpectedly succeeded.">&amp;2; \
297 exit 1; \
298 fi; \
299 exit 0
300
301 failtest_evthandler:
302 @$(RM) test_evthandler.o
303 @for d in GLOBAL STATIC METHOD FUNCTOR NO_HANDLER DERIVED WRONG_CLASS; do \
304 if $(MAKE) CXXWARNINGS=-DTEST_INVALID_BIND_$$d test_evthandler.o 2>/dev/null; then \
305 echo "*** Compilation with TEST_INVALID_BIND_$$d unexpectedly succeeded.">&amp;2; \
306 exit 1; \
307 fi; \
308 done; \
309 exit 0
310
311 .PHONY: failtest
312 </fragment>
313
314 </makefile>