]> git.saurik.com Git - wxWidgets.git/blob - tests/test.bkl
fixing year display, see #11444
[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 TOOLKIT=='MSW'">
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/evtsource.cpp
44 events/stopwatch.cpp
45 events/timertest.cpp
46 exec/exec.cpp
47 file/dir.cpp
48 file/filefn.cpp
49 file/filetest.cpp
50 filekind/filekind.cpp
51 filename/filenametest.cpp
52 filesys/filesystest.cpp
53 fontmap/fontmaptest.cpp
54 formatconverter/formatconvertertest.cpp
55 fswatcher/fswatchertest.cpp
56 hashes/hashes.cpp
57 intl/intltest.cpp
58 lists/lists.cpp
59 log/logtest.cpp
60 longlong/longlongtest.cpp
61 mbconv/convautotest.cpp
62 mbconv/mbconvtest.cpp
63 misc/dynamiclib.cpp
64 misc/environ.cpp
65 misc/metatest.cpp
66 misc/misctests.cpp
67 misc/module.cpp
68 misc/pathlist.cpp
69 misc/typeinfotest.cpp
70 net/ipc.cpp
71 net/socket.cpp
72 regex/regextest.cpp
73 regex/wxregextest.cpp
74 scopeguard/scopeguardtest.cpp
75 strings/iostream.cpp
76 strings/strings.cpp
77 strings/stdstrings.cpp
78 strings/tokenizer.cpp
79 strings/unichar.cpp
80 strings/unicode.cpp
81 strings/vararg.cpp
82 strings/crt.cpp
83 strings/vsnprintf.cpp
84 streams/bstream.cpp
85 streams/datastreamtest.cpp
86 streams/ffilestream.cpp
87 streams/fileback.cpp
88 streams/filestream.cpp
89 streams/iostreams.cpp
90 streams/largefile.cpp
91 streams/memstream.cpp
92 streams/socketstream.cpp
93 streams/sstream.cpp
94 streams/stdstream.cpp
95 streams/tempfile.cpp
96 streams/textstreamtest.cpp
97 streams/zlibstream.cpp
98 textfile/textfiletest.cpp
99 thread/atomic.cpp
100 thread/misc.cpp
101 thread/queue.cpp
102 thread/tls.cpp
103 uris/ftp.cpp
104 uris/uris.cpp
105 uris/url.cpp
106 vectors/vectors.cpp
107 weakref/evtconnection.cpp
108 weakref/weakref.cpp
109 xlocale/xlocale.cpp
110 xml/xmltest.cpp
111 </sources>
112 <wx-lib>net</wx-lib>
113 <wx-lib>xml</wx-lib>
114 <wx-lib>base</wx-lib>
115 </exe>
116
117
118 <exe id="test_gui" template="wx_sample,wx_test"
119 template_append="wx_append"
120 cond="USE_GUI=='1'">
121
122 <!-- link against GUI libraries, but be a console app: -->
123 <app-type>console</app-type>
124
125 <sources>
126 test.cpp
127 geometry/rect.cpp
128 geometry/size.cpp
129 geometry/point.cpp
130 graphics/bitmap.cpp
131 graphics/colour.cpp
132 graphics/ellipsization.cpp
133 graphics/measuring.cpp
134 config/config.cpp
135 controls/comboboxtest.cpp
136 controls/headerctrltest.cpp
137 controls/label.cpp
138 controls/listctrltest.cpp
139 controls/textctrltest.cpp
140 controls/textentrytest.cpp
141 controls/treectrltest.cpp
142 events/clone.cpp
143 events/propagation.cpp
144 font/fonttest.cpp
145 image/image.cpp
146 image/rawbmp.cpp
147 html/htmlwindow.cpp
148 misc/guifuncs.cpp
149 misc/selstoretest.cpp
150 misc/garbage.cpp
151 misc/settings.cpp
152 <!--
153 This one is intentionally duplicated here (it is also part of
154 non-GUI test) as sockets behave differently in console and GUI
155 applications.
156 -->
157 net/socket.cpp
158 sizers/boxsizer.cpp
159 window/clientsize.cpp
160 window/setsize.cpp
161 </sources>
162 <wx-lib>media</wx-lib>
163 <wx-lib>xrc</wx-lib>
164 <wx-lib>xml</wx-lib>
165 <wx-lib>adv</wx-lib>
166 <wx-lib>html</wx-lib>
167 <wx-lib>core</wx-lib>
168 <wx-lib>net</wx-lib>
169 <wx-lib>base</wx-lib>
170 </exe>
171
172
173 <wx-data id="data">
174 <files>testdata.fc</files>
175
176 <!-- test data for image/image.cpp test unit: -->
177 <files>horse.ani horse.bmp horse.cur horse.gif horse.ico horse.jpg
178 horse.pcx horse.png horse.pnm horse.tga horse.tif horse.xpm</files>
179 </wx-data>
180
181 <template id="catalog">
182 <dstdir>$(BUILDDIR)/intl/$(id)</dstdir>
183 <srcdir>$(SRCDIR)/intl/$(id)</srcdir>
184 <files>internat.po internat.mo</files>
185 </template>
186
187 <wx-data id="fr" template="catalog"/>
188
189
190 <fragment format="autoconf">
191 # notice the ugly hack with using CXXWARNINGS: we can't use CPPFLAGS as
192 # currently the value in the makefile would be ignored if we did, but
193 # warnings don't matter when we expect compilation to fail anyhow so we can
194 # use this variable to enable the compilation of code which is supposed to
195 # fail
196 failtest:
197 @$(RM) test_evthandler.o
198 @for d in GLOBAL STATIC METHOD FUNCTOR NO_HANDLER DERIVED WRONG_CLASS; do \
199 if $(MAKE) CXXWARNINGS=-DTEST_INVALID_BIND_$$d test_evthandler.o 2>/dev/null; then \
200 echo "*** Compilation with TEST_INVALID_BIND_$$d unexpectedly succeeded.">&amp;2; \
201 exit 1; \
202 fi; \
203 done; \
204 exit 0
205
206 .PHONY: failtest
207 </fragment>
208
209 </makefile>