]> git.saurik.com Git - wxWidgets.git/blame - tests/test.bkl
Use "INNO" env var in Inno Setup script only if it's defined.
[wxWidgets.git] / tests / test.bkl
CommitLineData
670ec357 1<?xml version="1.0" ?>
7d5ab151 2<!-- $Id$ -->
670ec357
VS
3
4<makefile>
99b9c0ea
VZ
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>
670ec357
VS
10
11 <include file="../build/bakefiles/common_samples.bkl"/>
12
a0744a6b
VS
13 <template id="wx_test">
14 <cppflags>$(CPPUNIT_CFLAGS)</cppflags>
15 <ldflags>$(CPPUNIT_LIBS)</ldflags>
3e8f9a49 16
8899b155 17 <if cond="WX_DISABLE_PRECOMP_HEADERS=='0'">
f2f5d11c 18 <if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'">
8899b155
RN
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>
a0744a6b 26 </template>
8899b155 27
a0744a6b
VS
28 <exe id="test" template="wx_sample_console,wx_test"
29 template_append="wx_append_base">
670ec357
VS
30 <sources>
31 test.cpp
178c7760 32 any/anytest.cpp
00375592 33 archive/archivetest.cpp
e6477b92 34 archive/ziptest.cpp
cdd7933f 35 archive/tartest.cpp
dd65d8c8 36 arrays/arrays.cpp
4db03d26 37 base64/base64.cpp
5769cf0f 38 cmdline/cmdlinetest.cpp
9222c613 39 config/fileconf.cpp
7b8ccf33 40 config/regconf.cpp
a9e99461 41 datetime/datetimetest.cpp
4fc218c2 42 events/evthandler.cpp
d3ad22bd 43 events/evtlooptest.cpp
6b8ef0b3 44 events/evtsource.cpp
45cb7053 45 events/stopwatch.cpp
438febca 46 events/timertest.cpp
ca5016d4 47 exec/exec.cpp
e7747eb2 48 file/dir.cpp
69fc8587 49 file/filefn.cpp
227989f3 50 file/filetest.cpp
0912690b 51 filekind/filekind.cpp
a9e99461
RN
52 filename/filenametest.cpp
53 filesys/filesystest.cpp
54 fontmap/fontmaptest.cpp
55 formatconverter/formatconvertertest.cpp
6b8ef0b3 56 fswatcher/fswatchertest.cpp
f9c3d39b 57 hashes/hashes.cpp
81ec0e15
FM
58 interactive/output.cpp
59 interactive/input.cpp
02f935fb 60 intl/intltest.cpp
7d9cfc54 61 lists/lists.cpp
ece5e6a4 62 log/logtest.cpp
a9e99461 63 longlong/longlongtest.cpp
a29cce78 64 mbconv/convautotest.cpp
a9e99461 65 mbconv/mbconvtest.cpp
69fc8587
FM
66 misc/dynamiclib.cpp
67 misc/environ.cpp
109e2ca4 68 misc/metatest.cpp
604fba2d 69 misc/misctests.cpp
49e323a5
FM
70 misc/module.cpp
71 misc/pathlist.cpp
7db064f6 72 misc/typeinfotest.cpp
e7ce668e 73 net/ipc.cpp
62fb86a5 74 net/socket.cpp
a9e99461
RN
75 regex/regextest.cpp
76 regex/wxregextest.cpp
5f7348ce 77 scopeguard/scopeguardtest.cpp
99d8bc65 78 strings/iostream.cpp
6686fbad 79 strings/numformatter.cpp
1cd53e88 80 strings/strings.cpp
405b7d91 81 strings/stdstrings.cpp
a67f601b 82 strings/tokenizer.cpp
c9f78968 83 strings/unichar.cpp
387f829e 84 strings/unicode.cpp
c9f78968 85 strings/vararg.cpp
cf8ee08b 86 strings/crt.cpp
7a828c7f 87 strings/vsnprintf.cpp
7735998c 88 streams/bstream.cpp
2f4bebe8 89 streams/datastreamtest.cpp
7735998c 90 streams/ffilestream.cpp
e2255c89 91 streams/fileback.cpp
7735998c 92 streams/filestream.cpp
02e22828 93 streams/iostreams.cpp
48714f74 94 streams/largefile.cpp
7735998c 95 streams/memstream.cpp
f9caf1af 96 streams/socketstream.cpp
32d49041 97 streams/sstream.cpp
72a7c559 98 streams/stdstream.cpp
e1265174 99 streams/tempfile.cpp
ba854691 100 streams/textstreamtest.cpp
7735998c 101 streams/zlibstream.cpp
468c5a97 102 textfile/textfiletest.cpp
cde76cf2 103 thread/atomic.cpp
1f5496a0 104 thread/misc.cpp
6aaee6af 105 thread/queue.cpp
8b73c531 106 thread/tls.cpp
ec0e0939 107 uris/ftp.cpp
d37da5ef 108 uris/uris.cpp
21fe35af 109 uris/url.cpp
e966f815 110 vectors/vectors.cpp
cc6ceca7
VZ
111 weakref/evtconnection.cpp
112 weakref/weakref.cpp
6e4ae332 113 xlocale/xlocale.cpp
5e05df3c 114 xml/xmltest.cpp
670ec357 115 </sources>
d37da5ef 116 <wx-lib>net</wx-lib>
5e05df3c 117 <wx-lib>xml</wx-lib>
7b4138e2 118 <wx-lib>base</wx-lib>
670ec357 119 </exe>
3e8f9a49 120
a0744a6b
VS
121
122 <exe id="test_gui" template="wx_sample,wx_test"
123 template_append="wx_append"
124 cond="USE_GUI=='1'">
98a50e20
VS
125
126 <!-- link against GUI libraries, but be a console app: -->
127 <app-type>console</app-type>
3e8f9a49 128
a0744a6b 129 <sources>
232fdc63 130 asserthelper.cpp
a0744a6b 131 test.cpp
232fdc63 132 testableframe.cpp
e07e8195 133 geometry/rect.cpp
3e8f9a49
WS
134 geometry/size.cpp
135 geometry/point.cpp
dd4eefcb 136 geometry/region.cpp
27297c82 137 graphics/bitmap.cpp
b0edecea 138 graphics/colour.cpp
a37da0fa 139 graphics/ellipsization.cpp
f806b2b4 140 graphics/measuring.cpp
ab797d5d 141 graphics/affinematrix.cpp
9222c613 142 config/config.cpp
232fdc63
VZ
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
dc7f9c9c 151 controls/comboboxtest.cpp
cbef7338 152 controls/dataviewctrltest.cpp
5f899cbe 153 controls/datepickerctrltest.cpp
232fdc63
VZ
154 controls/frametest.cpp
155 controls/gaugetest.cpp
156 controls/gridtest.cpp
56873923 157 controls/headerctrltest.cpp
68ebe262 158 controls/htmllboxtest.cpp
232fdc63
VZ
159 controls/hyperlinkctrltest.cpp
160 controls/itemcontainertest.cpp
32ee98eb 161 controls/label.cpp
232fdc63
VZ
162 controls/listbasetest.cpp
163 controls/listbooktest.cpp
164 controls/listboxtest.cpp
56873923 165 controls/listctrltest.cpp
232fdc63 166 controls/listviewtest.cpp
9bb9964e 167 controls/markuptest.cpp
232fdc63 168 controls/notebooktest.cpp
997ddb2c 169 controls/ownerdrawncomboboxtest.cpp
232fdc63
VZ
170 controls/pickerbasetest.cpp
171 controls/pickertest.cpp
172 controls/radioboxtest.cpp
173 controls/radiobuttontest.cpp
174 controls/rearrangelisttest.cpp
175 controls/richtextctrltest.cpp
09ca8913 176 controls/searchctrltest.cpp
10e6908d 177 controls/simplebooktest.cpp
232fdc63
VZ
178 controls/slidertest.cpp
179 controls/spinctrldbltest.cpp
180 controls/spinctrltest.cpp
c0d9b217 181 controls/textctrltest.cpp
f0f6a32d 182 controls/textentrytest.cpp
232fdc63
VZ
183 controls/togglebuttontest.cpp
184 controls/toolbooktest.cpp
185 controls/treebooktest.cpp
fa97ee24 186 controls/treectrltest.cpp
524cb040 187 controls/treelistctrltest.cpp
681694bc 188 controls/virtlistctrltest.cpp
2dad08ec 189 controls/webtest.cpp
232fdc63 190 controls/windowtest.cpp
643e9cf9 191 controls/dialogtest.cpp
031b101f 192 events/clone.cpp
d3ad22bd
VZ
193 <!--
194 Duplicate this file here to test GUI event loops too.
195 -->
196 events/evtlooptest.cpp
1649d288 197 events/propagation.cpp
042ddf5d 198 events/keyboard.cpp
d6655d44
VZ
199 <!--
200 And duplicate this one too as wxExecute behaves differently in
201 console and GUI applications.
202 -->
203 exec/exec.cpp
5b06a80f 204 font/fonttest.cpp
21fe35af 205 image/image.cpp
3e50a139 206 image/rawbmp.cpp
36258204 207 html/htmlparser.cpp
c39058f6 208 html/htmlwindow.cpp
944f641c 209 menu/accelentry.cpp
65571ec7 210 menu/menu.cpp
841a25bb 211 misc/guifuncs.cpp
c8f80d27 212 misc/selstoretest.cpp
9e48b1f5 213 misc/garbage.cpp
e3527f7b 214 misc/settings.cpp
1156062f
VZ
215 <!--
216 This one is intentionally duplicated here (it is also part of
217 non-GUI test) as sockets behave differently in console and GUI
218 applications.
219 -->
220 net/socket.cpp
869c7a94 221 sizers/boxsizer.cpp
e4c903b2 222 sizers/wrapsizer.cpp
1b54c33f 223 toplevel/toplevel.cpp
a54cf371 224 validators/valnum.cpp
1a86d2e5 225 window/clientsize.cpp
5af86f4d 226 window/setsize.cpp
0526c8cc 227 xml/xrctest.cpp
a0744a6b 228 </sources>
ea10101a
VZ
229 <!--
230 Can't use <wx-lib> here as it doesn't work with conditionally
231 defined variables, so fall back <sys-lib> as we must not link with
232 inexisting webview library to be able to run tests even if
233 wxWebView is not available.
234 -->
235 <sys-lib>$(WXLIB_WEBVIEW)</sys-lib>
232fdc63 236 <wx-lib>richtext</wx-lib>
9e48b1f5
FM
237 <wx-lib>media</wx-lib>
238 <wx-lib>xrc</wx-lib>
239 <wx-lib>xml</wx-lib>
240 <wx-lib>adv</wx-lib>
c39058f6 241 <wx-lib>html</wx-lib>
a0744a6b 242 <wx-lib>core</wx-lib>
1156062f 243 <wx-lib>net</wx-lib>
a0744a6b
VS
244 <wx-lib>base</wx-lib>
245 </exe>
246
670ec357 247
387f829e
VS
248 <wx-data id="data">
249 <files>testdata.fc</files>
21fe35af
FM
250
251 <!-- test data for image/image.cpp test unit: -->
252 <files>horse.ani horse.bmp horse.cur horse.gif horse.ico horse.jpg
253 horse.pcx horse.png horse.pnm horse.tga horse.tif horse.xpm</files>
387f829e
VS
254 </wx-data>
255
409fe759
DS
256 <wx-data id="data-images">
257 <srcdir>$(SRCDIR)/image</srcdir>
258 <dstdir>image</dstdir>
d9a4a0d0
VZ
259 <files>
260 horse_grey.bmp horse_grey_flipped.bmp
261 horse_rle4.bmp horse_rle4_flipped.bmp
262 horse_rle8.bmp horse_rle8_flipped.bmp
263
264 horse_bicubic_50x50.png
265 horse_bicubic_100x100.png
266 horse_bicubic_150x150.png
267 horse_bicubic_300x300.png
268
269 horse_bilinear_50x50.png
270 horse_bilinear_100x100.png
271 horse_bilinear_150x150.png
272 horse_bilinear_300x300.png
273
274 horse_box_average_50x50.png
275 horse_box_average_100x100.png
276 horse_box_average_150x150.png
277 horse_box_average_300x300.png
278 </files>
409fe759
DS
279 </wx-data>
280
02f935fb
VS
281 <template id="catalog">
282 <dstdir>$(BUILDDIR)/intl/$(id)</dstdir>
283 <srcdir>$(SRCDIR)/intl/$(id)</srcdir>
284 <files>internat.po internat.mo</files>
285 </template>
286
287 <wx-data id="fr" template="catalog"/>
412a5c57
VZ
288
289
449cb073
VZ
290 <fragment format="autoconf">
291# notice the ugly hack with using CXXWARNINGS: we can't use CPPFLAGS as
292# currently the value in the makefile would be ignored if we did, but
293# warnings don't matter when we expect compilation to fail anyhow so we can
294# use this variable to enable the compilation of code which is supposed to
295# fail
36a96421
VZ
296failtest: failtest_combobox failtest_evthandler
297
298failtest_combobox:
299 @$(RM) test_gui_comboboxtest.o
300 if $(MAKE) CXXWARNINGS=-DTEST_INVALID_COMBOBOX_ISEMPTY test_gui_comboboxtest.o 2>/dev/null; then \
301 echo "*** Compilation with TEST_INVALID_COMBOBOX_ISEMPTY unexpectedly succeeded.">&amp;2; \
302 exit 1; \
303 fi; \
304 exit 0
305
306failtest_evthandler:
449cb073 307 @$(RM) test_evthandler.o
48c56e04 308 @for d in GLOBAL STATIC METHOD FUNCTOR NO_HANDLER DERIVED WRONG_CLASS; do \
449cb073
VZ
309 if $(MAKE) CXXWARNINGS=-DTEST_INVALID_BIND_$$d test_evthandler.o 2>/dev/null; then \
310 echo "*** Compilation with TEST_INVALID_BIND_$$d unexpectedly succeeded.">&amp;2; \
311 exit 1; \
312 fi; \
313 done; \
314 exit 0
315
316.PHONY: failtest
317 </fragment>
412a5c57 318
670ec357 319</makefile>