2004-03-03 22:56:16 +00:00
|
|
|
<?xml version="1.0" ?>
|
|
|
|
|
|
|
|
<makefile>
|
2008-09-19 09:03:01 +00:00
|
|
|
<!--
|
|
|
|
The use of PCH is disabled for samples by default but we do want to use
|
|
|
|
them for the test as this dramatically speeds up its compilation.
|
|
|
|
-->
|
|
|
|
<set var="WX_ENABLE_PRECOMP_HEADERS">1</set>
|
2004-03-03 22:56:16 +00:00
|
|
|
|
|
|
|
<include file="../build/bakefiles/common_samples.bkl"/>
|
|
|
|
|
2004-12-12 12:35:45 +00:00
|
|
|
<template id="wx_test">
|
|
|
|
<cppflags>$(CPPUNIT_CFLAGS)</cppflags>
|
|
|
|
<ldflags>$(CPPUNIT_LIBS)</ldflags>
|
2004-12-14 20:29:20 +00:00
|
|
|
|
2004-11-22 05:00:19 +00:00
|
|
|
<if cond="WX_DISABLE_PRECOMP_HEADERS=='0'">
|
2012-04-29 23:22:28 +00:00
|
|
|
<if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'">
|
2004-11-22 05:00:19 +00:00
|
|
|
<sources>dummy.cpp</sources>
|
|
|
|
<precomp-headers-gen>dummy.cpp</precomp-headers-gen>
|
|
|
|
</if>
|
|
|
|
<precomp-headers-header>testprec.h</precomp-headers-header>
|
|
|
|
<precomp-headers>on</precomp-headers>
|
|
|
|
<precomp-headers-file>testprec_$(id)</precomp-headers-file>
|
|
|
|
</if>
|
2004-12-12 12:35:45 +00:00
|
|
|
</template>
|
2004-11-22 05:00:19 +00:00
|
|
|
|
2004-12-12 12:35:45 +00:00
|
|
|
<exe id="test" template="wx_sample_console,wx_test"
|
|
|
|
template_append="wx_append_base">
|
2004-03-03 22:56:16 +00:00
|
|
|
<sources>
|
|
|
|
test.cpp
|
2009-09-19 08:51:11 +00:00
|
|
|
any/anytest.cpp
|
2004-11-10 23:58:38 +00:00
|
|
|
archive/archivetest.cpp
|
2005-02-10 14:06:08 +00:00
|
|
|
archive/ziptest.cpp
|
2006-10-27 10:11:46 +00:00
|
|
|
archive/tartest.cpp
|
2004-10-27 22:47:26 +00:00
|
|
|
arrays/arrays.cpp
|
2007-07-10 01:51:43 +00:00
|
|
|
base64/base64.cpp
|
2008-04-12 17:03:09 +00:00
|
|
|
cmdline/cmdlinetest.cpp
|
2007-07-21 23:51:19 +00:00
|
|
|
config/fileconf.cpp
|
2010-06-02 14:12:07 +00:00
|
|
|
config/regconf.cpp
|
2004-10-31 04:41:27 +00:00
|
|
|
datetime/datetimetest.cpp
|
2009-02-01 23:20:27 +00:00
|
|
|
events/evthandler.cpp
|
2013-07-03 00:26:13 +00:00
|
|
|
events/evtlooptest.cpp
|
2009-10-22 11:35:43 +00:00
|
|
|
events/evtsource.cpp
|
2010-05-16 15:44:17 +00:00
|
|
|
events/stopwatch.cpp
|
2008-10-27 22:04:42 +00:00
|
|
|
events/timertest.cpp
|
2009-03-23 16:23:44 +00:00
|
|
|
exec/exec.cpp
|
2010-06-19 12:32:57 +00:00
|
|
|
file/dir.cpp
|
2010-06-13 14:30:55 +00:00
|
|
|
file/filefn.cpp
|
2009-09-12 22:40:42 +00:00
|
|
|
file/filetest.cpp
|
2005-02-12 21:53:51 +00:00
|
|
|
filekind/filekind.cpp
|
2004-10-31 04:41:27 +00:00
|
|
|
filename/filenametest.cpp
|
|
|
|
filesys/filesystest.cpp
|
|
|
|
fontmap/fontmaptest.cpp
|
|
|
|
formatconverter/formatconvertertest.cpp
|
2009-10-22 11:35:43 +00:00
|
|
|
fswatcher/fswatchertest.cpp
|
2004-05-22 17:52:44 +00:00
|
|
|
hashes/hashes.cpp
|
2010-06-21 21:03:47 +00:00
|
|
|
interactive/output.cpp
|
|
|
|
interactive/input.cpp
|
2007-03-26 21:12:13 +00:00
|
|
|
intl/intltest.cpp
|
2004-12-08 22:39:22 +00:00
|
|
|
lists/lists.cpp
|
2009-07-07 12:19:34 +00:00
|
|
|
log/logtest.cpp
|
2004-10-31 04:41:27 +00:00
|
|
|
longlong/longlongtest.cpp
|
2006-04-05 14:38:42 +00:00
|
|
|
mbconv/convautotest.cpp
|
2004-10-31 04:41:27 +00:00
|
|
|
mbconv/mbconvtest.cpp
|
2010-06-13 14:30:55 +00:00
|
|
|
misc/dynamiclib.cpp
|
|
|
|
misc/environ.cpp
|
2010-06-14 15:12:37 +00:00
|
|
|
misc/metatest.cpp
|
2008-08-02 22:49:01 +00:00
|
|
|
misc/misctests.cpp
|
2010-06-06 14:21:27 +00:00
|
|
|
misc/module.cpp
|
|
|
|
misc/pathlist.cpp
|
2009-11-19 19:27:24 +00:00
|
|
|
misc/typeinfotest.cpp
|
2008-07-14 02:19:34 +00:00
|
|
|
net/ipc.cpp
|
2008-10-12 20:45:29 +00:00
|
|
|
net/socket.cpp
|
2004-10-31 04:41:27 +00:00
|
|
|
regex/regextest.cpp
|
|
|
|
regex/wxregextest.cpp
|
2005-06-16 23:47:30 +00:00
|
|
|
scopeguard/scopeguardtest.cpp
|
2007-10-09 00:10:07 +00:00
|
|
|
strings/iostream.cpp
|
2011-01-19 10:47:40 +00:00
|
|
|
strings/numformatter.cpp
|
2004-04-20 18:55:09 +00:00
|
|
|
strings/strings.cpp
|
2004-05-21 07:59:14 +00:00
|
|
|
strings/stdstrings.cpp
|
2005-12-20 16:30:12 +00:00
|
|
|
strings/tokenizer.cpp
|
2007-03-17 10:26:10 +00:00
|
|
|
strings/unichar.cpp
|
2004-04-30 20:26:14 +00:00
|
|
|
strings/unicode.cpp
|
2007-03-17 10:26:10 +00:00
|
|
|
strings/vararg.cpp
|
2004-06-03 19:48:31 +00:00
|
|
|
strings/crt.cpp
|
2006-05-28 15:18:15 +00:00
|
|
|
strings/vsnprintf.cpp
|
2004-04-18 19:26:20 +00:00
|
|
|
streams/bstream.cpp
|
2004-11-24 22:31:25 +00:00
|
|
|
streams/datastreamtest.cpp
|
2004-04-18 19:26:20 +00:00
|
|
|
streams/ffilestream.cpp
|
2006-10-23 21:58:35 +00:00
|
|
|
streams/fileback.cpp
|
2004-04-18 19:26:20 +00:00
|
|
|
streams/filestream.cpp
|
2008-06-15 17:34:50 +00:00
|
|
|
streams/iostreams.cpp
|
2005-02-04 09:43:47 +00:00
|
|
|
streams/largefile.cpp
|
2004-04-18 19:26:20 +00:00
|
|
|
streams/memstream.cpp
|
2008-07-08 00:19:54 +00:00
|
|
|
streams/socketstream.cpp
|
2004-09-19 22:00:16 +00:00
|
|
|
streams/sstream.cpp
|
2009-05-02 18:29:33 +00:00
|
|
|
streams/stdstream.cpp
|
2005-03-13 16:20:51 +00:00
|
|
|
streams/tempfile.cpp
|
2004-11-21 18:26:38 +00:00
|
|
|
streams/textstreamtest.cpp
|
2004-04-18 19:26:20 +00:00
|
|
|
streams/zlibstream.cpp
|
2006-03-31 13:46:38 +00:00
|
|
|
textfile/textfiletest.cpp
|
2007-07-04 20:54:14 +00:00
|
|
|
thread/atomic.cpp
|
2010-05-10 21:48:24 +00:00
|
|
|
thread/misc.cpp
|
2007-11-01 01:35:20 +00:00
|
|
|
thread/queue.cpp
|
2008-08-29 23:28:42 +00:00
|
|
|
thread/tls.cpp
|
2010-05-29 07:56:08 +00:00
|
|
|
uris/ftp.cpp
|
2004-11-04 21:54:29 +00:00
|
|
|
uris/uris.cpp
|
2009-06-01 11:46:36 +00:00
|
|
|
uris/url.cpp
|
2007-07-07 10:09:42 +00:00
|
|
|
vectors/vectors.cpp
|
2008-01-13 01:12:13 +00:00
|
|
|
weakref/evtconnection.cpp
|
|
|
|
weakref/weakref.cpp
|
2008-02-10 17:03:23 +00:00
|
|
|
xlocale/xlocale.cpp
|
2008-03-29 22:55:35 +00:00
|
|
|
xml/xmltest.cpp
|
2004-03-03 22:56:16 +00:00
|
|
|
</sources>
|
2004-11-04 21:54:29 +00:00
|
|
|
<wx-lib>net</wx-lib>
|
2008-03-29 22:55:35 +00:00
|
|
|
<wx-lib>xml</wx-lib>
|
2009-05-30 13:54:22 +00:00
|
|
|
<wx-lib>base</wx-lib>
|
2004-03-03 22:56:16 +00:00
|
|
|
</exe>
|
2004-12-14 20:29:20 +00:00
|
|
|
|
2004-12-12 12:35:45 +00:00
|
|
|
|
|
|
|
<exe id="test_gui" template="wx_sample,wx_test"
|
|
|
|
template_append="wx_append"
|
|
|
|
cond="USE_GUI=='1'">
|
2004-12-12 19:25:46 +00:00
|
|
|
|
|
|
|
<!-- link against GUI libraries, but be a console app: -->
|
|
|
|
<app-type>console</app-type>
|
2004-12-14 20:29:20 +00:00
|
|
|
|
2004-12-12 12:35:45 +00:00
|
|
|
<sources>
|
2010-08-22 22:16:05 +00:00
|
|
|
asserthelper.cpp
|
2004-12-12 12:35:45 +00:00
|
|
|
test.cpp
|
2010-08-22 22:16:05 +00:00
|
|
|
testableframe.cpp
|
2004-12-12 19:23:19 +00:00
|
|
|
geometry/rect.cpp
|
2004-12-14 20:29:20 +00:00
|
|
|
geometry/size.cpp
|
|
|
|
geometry/point.cpp
|
2011-10-18 21:56:48 +00:00
|
|
|
geometry/region.cpp
|
2010-03-28 23:20:49 +00:00
|
|
|
graphics/bitmap.cpp
|
2009-09-19 16:29:50 +00:00
|
|
|
graphics/colour.cpp
|
2010-03-10 13:57:47 +00:00
|
|
|
graphics/ellipsization.cpp
|
2009-04-15 22:38:53 +00:00
|
|
|
graphics/measuring.cpp
|
2011-04-26 22:57:20 +00:00
|
|
|
graphics/affinematrix.cpp
|
2007-07-21 23:51:19 +00:00
|
|
|
config/config.cpp
|
2010-08-22 22:16:05 +00:00
|
|
|
controls/bitmapcomboboxtest.cpp
|
|
|
|
controls/bitmaptogglebuttontest.cpp
|
|
|
|
controls/bookctrlbasetest.cpp
|
|
|
|
controls/buttontest.cpp
|
|
|
|
controls/checkboxtest.cpp
|
|
|
|
controls/checklistboxtest.cpp
|
|
|
|
controls/choicebooktest.cpp
|
|
|
|
controls/choicetest.cpp
|
2008-09-19 10:18:30 +00:00
|
|
|
controls/comboboxtest.cpp
|
2011-08-10 15:24:25 +00:00
|
|
|
controls/dataviewctrltest.cpp
|
2011-06-19 22:46:45 +00:00
|
|
|
controls/datepickerctrltest.cpp
|
2010-08-22 22:16:05 +00:00
|
|
|
controls/frametest.cpp
|
|
|
|
controls/gaugetest.cpp
|
|
|
|
controls/gridtest.cpp
|
2008-12-03 21:53:10 +00:00
|
|
|
controls/headerctrltest.cpp
|
2010-11-27 11:34:34 +00:00
|
|
|
controls/htmllboxtest.cpp
|
2010-08-22 22:16:05 +00:00
|
|
|
controls/hyperlinkctrltest.cpp
|
|
|
|
controls/itemcontainertest.cpp
|
2010-03-21 21:39:15 +00:00
|
|
|
controls/label.cpp
|
2010-08-22 22:16:05 +00:00
|
|
|
controls/listbasetest.cpp
|
|
|
|
controls/listbooktest.cpp
|
|
|
|
controls/listboxtest.cpp
|
2008-12-03 21:53:10 +00:00
|
|
|
controls/listctrltest.cpp
|
2010-08-22 22:16:05 +00:00
|
|
|
controls/listviewtest.cpp
|
2011-02-27 12:46:42 +00:00
|
|
|
controls/markuptest.cpp
|
2010-08-22 22:16:05 +00:00
|
|
|
controls/notebooktest.cpp
|
2010-12-20 13:55:40 +00:00
|
|
|
controls/ownerdrawncomboboxtest.cpp
|
2010-08-22 22:16:05 +00:00
|
|
|
controls/pickerbasetest.cpp
|
|
|
|
controls/pickertest.cpp
|
|
|
|
controls/radioboxtest.cpp
|
|
|
|
controls/radiobuttontest.cpp
|
|
|
|
controls/rearrangelisttest.cpp
|
|
|
|
controls/richtextctrltest.cpp
|
2013-01-20 02:09:44 +00:00
|
|
|
controls/searchctrltest.cpp
|
2013-06-23 16:38:51 +00:00
|
|
|
controls/simplebooktest.cpp
|
2010-08-22 22:16:05 +00:00
|
|
|
controls/slidertest.cpp
|
|
|
|
controls/spinctrldbltest.cpp
|
|
|
|
controls/spinctrltest.cpp
|
2007-09-26 00:28:31 +00:00
|
|
|
controls/textctrltest.cpp
|
2008-09-19 08:55:25 +00:00
|
|
|
controls/textentrytest.cpp
|
2010-08-22 22:16:05 +00:00
|
|
|
controls/togglebuttontest.cpp
|
|
|
|
controls/toolbooktest.cpp
|
|
|
|
controls/treebooktest.cpp
|
2009-01-17 13:16:25 +00:00
|
|
|
controls/treectrltest.cpp
|
2011-08-27 14:11:03 +00:00
|
|
|
controls/treelistctrltest.cpp
|
2010-11-13 15:03:20 +00:00
|
|
|
controls/virtlistctrltest.cpp
|
2011-07-08 08:19:25 +00:00
|
|
|
controls/webtest.cpp
|
2010-08-22 22:16:05 +00:00
|
|
|
controls/windowtest.cpp
|
2012-11-01 16:45:11 +00:00
|
|
|
controls/dialogtest.cpp
|
2009-03-22 21:31:34 +00:00
|
|
|
events/clone.cpp
|
2013-07-03 00:26:13 +00:00
|
|
|
<!--
|
|
|
|
Duplicate this file here to test GUI event loops too.
|
|
|
|
-->
|
|
|
|
events/evtlooptest.cpp
|
2009-01-16 16:21:50 +00:00
|
|
|
events/propagation.cpp
|
2010-09-11 10:18:31 +00:00
|
|
|
events/keyboard.cpp
|
2013-07-03 00:32:40 +00:00
|
|
|
<!--
|
|
|
|
And duplicate this one too as wxExecute behaves differently in
|
|
|
|
console and GUI applications.
|
|
|
|
-->
|
|
|
|
exec/exec.cpp
|
2009-03-18 15:32:28 +00:00
|
|
|
font/fonttest.cpp
|
2009-06-01 11:46:36 +00:00
|
|
|
image/image.cpp
|
2008-05-30 19:30:23 +00:00
|
|
|
image/rawbmp.cpp
|
2011-01-13 14:49:55 +00:00
|
|
|
html/htmlparser.cpp
|
2008-10-15 15:55:25 +00:00
|
|
|
html/htmlwindow.cpp
|
2010-12-03 12:39:57 +00:00
|
|
|
menu/accelentry.cpp
|
2010-11-13 15:03:02 +00:00
|
|
|
menu/menu.cpp
|
2008-09-22 16:03:45 +00:00
|
|
|
misc/guifuncs.cpp
|
2008-03-31 15:22:10 +00:00
|
|
|
misc/selstoretest.cpp
|
2009-01-11 00:39:22 +00:00
|
|
|
misc/garbage.cpp
|
2009-03-24 23:13:02 +00:00
|
|
|
misc/settings.cpp
|
2008-12-27 11:14:10 +00:00
|
|
|
<!--
|
|
|
|
This one is intentionally duplicated here (it is also part of
|
|
|
|
non-GUI test) as sockets behave differently in console and GUI
|
|
|
|
applications.
|
|
|
|
-->
|
|
|
|
net/socket.cpp
|
2010-03-18 15:07:10 +00:00
|
|
|
sizers/boxsizer.cpp
|
2011-02-08 13:36:13 +00:00
|
|
|
sizers/wrapsizer.cpp
|
2011-05-01 14:58:58 +00:00
|
|
|
toplevel/toplevel.cpp
|
2011-01-19 10:48:28 +00:00
|
|
|
validators/valnum.cpp
|
2008-05-25 02:56:22 +00:00
|
|
|
window/clientsize.cpp
|
2008-05-25 03:08:31 +00:00
|
|
|
window/setsize.cpp
|
2010-11-07 14:00:59 +00:00
|
|
|
xml/xrctest.cpp
|
2004-12-12 12:35:45 +00:00
|
|
|
</sources>
|
2011-10-30 14:19:59 +00:00
|
|
|
<!--
|
|
|
|
Can't use <wx-lib> here as it doesn't work with conditionally
|
|
|
|
defined variables, so fall back <sys-lib> as we must not link with
|
|
|
|
inexisting webview library to be able to run tests even if
|
|
|
|
wxWebView is not available.
|
|
|
|
-->
|
|
|
|
<sys-lib>$(WXLIB_WEBVIEW)</sys-lib>
|
2010-08-22 22:16:05 +00:00
|
|
|
<wx-lib>richtext</wx-lib>
|
2009-01-11 00:39:22 +00:00
|
|
|
<wx-lib>media</wx-lib>
|
|
|
|
<wx-lib>xrc</wx-lib>
|
|
|
|
<wx-lib>xml</wx-lib>
|
|
|
|
<wx-lib>adv</wx-lib>
|
2008-10-15 15:55:25 +00:00
|
|
|
<wx-lib>html</wx-lib>
|
2004-12-12 12:35:45 +00:00
|
|
|
<wx-lib>core</wx-lib>
|
2008-12-27 11:14:10 +00:00
|
|
|
<wx-lib>net</wx-lib>
|
2004-12-12 12:35:45 +00:00
|
|
|
<wx-lib>base</wx-lib>
|
|
|
|
</exe>
|
|
|
|
|
2004-03-03 22:56:16 +00:00
|
|
|
|
2004-04-30 20:26:14 +00:00
|
|
|
<wx-data id="data">
|
|
|
|
<files>testdata.fc</files>
|
2009-06-01 11:46:36 +00:00
|
|
|
|
|
|
|
<!-- test data for image/image.cpp test unit: -->
|
|
|
|
<files>horse.ani horse.bmp horse.cur horse.gif horse.ico horse.jpg
|
|
|
|
horse.pcx horse.png horse.pnm horse.tga horse.tif horse.xpm</files>
|
2004-04-30 20:26:14 +00:00
|
|
|
</wx-data>
|
|
|
|
|
2011-08-19 16:10:07 +00:00
|
|
|
<wx-data id="data-images">
|
|
|
|
<srcdir>$(SRCDIR)/image</srcdir>
|
|
|
|
<dstdir>image</dstdir>
|
2013-07-01 14:47:12 +00:00
|
|
|
<files>
|
|
|
|
horse_grey.bmp horse_grey_flipped.bmp
|
|
|
|
horse_rle4.bmp horse_rle4_flipped.bmp
|
|
|
|
horse_rle8.bmp horse_rle8_flipped.bmp
|
|
|
|
|
|
|
|
horse_bicubic_50x50.png
|
|
|
|
horse_bicubic_100x100.png
|
|
|
|
horse_bicubic_150x150.png
|
|
|
|
horse_bicubic_300x300.png
|
|
|
|
|
|
|
|
horse_bilinear_50x50.png
|
|
|
|
horse_bilinear_100x100.png
|
|
|
|
horse_bilinear_150x150.png
|
|
|
|
horse_bilinear_300x300.png
|
|
|
|
|
|
|
|
horse_box_average_50x50.png
|
|
|
|
horse_box_average_100x100.png
|
|
|
|
horse_box_average_150x150.png
|
|
|
|
horse_box_average_300x300.png
|
|
|
|
</files>
|
2011-08-19 16:10:07 +00:00
|
|
|
</wx-data>
|
|
|
|
|
2007-03-26 21:12:13 +00:00
|
|
|
<template id="catalog">
|
|
|
|
<dstdir>$(BUILDDIR)/intl/$(id)</dstdir>
|
|
|
|
<srcdir>$(SRCDIR)/intl/$(id)</srcdir>
|
|
|
|
<files>internat.po internat.mo</files>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<wx-data id="fr" template="catalog"/>
|
2006-09-05 21:14:38 +00:00
|
|
|
|
|
|
|
|
2009-04-16 14:47:22 +00:00
|
|
|
<fragment format="autoconf">
|
|
|
|
# notice the ugly hack with using CXXWARNINGS: we can't use CPPFLAGS as
|
|
|
|
# currently the value in the makefile would be ignored if we did, but
|
|
|
|
# warnings don't matter when we expect compilation to fail anyhow so we can
|
|
|
|
# use this variable to enable the compilation of code which is supposed to
|
|
|
|
# fail
|
2011-08-21 12:06:16 +00:00
|
|
|
failtest: failtest_combobox failtest_evthandler
|
|
|
|
|
|
|
|
failtest_combobox:
|
|
|
|
@$(RM) test_gui_comboboxtest.o
|
|
|
|
if $(MAKE) CXXWARNINGS=-DTEST_INVALID_COMBOBOX_ISEMPTY test_gui_comboboxtest.o 2>/dev/null; then \
|
|
|
|
echo "*** Compilation with TEST_INVALID_COMBOBOX_ISEMPTY unexpectedly succeeded.">&2; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
failtest_evthandler:
|
2009-04-16 14:47:22 +00:00
|
|
|
@$(RM) test_evthandler.o
|
2009-04-16 21:33:37 +00:00
|
|
|
@for d in GLOBAL STATIC METHOD FUNCTOR NO_HANDLER DERIVED WRONG_CLASS; do \
|
2009-04-16 14:47:22 +00:00
|
|
|
if $(MAKE) CXXWARNINGS=-DTEST_INVALID_BIND_$$d test_evthandler.o 2>/dev/null; then \
|
|
|
|
echo "*** Compilation with TEST_INVALID_BIND_$$d unexpectedly succeeded.">&2; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
.PHONY: failtest
|
|
|
|
</fragment>
|
2006-09-05 21:14:38 +00:00
|
|
|
|
2004-03-03 22:56:16 +00:00
|
|
|
</makefile>
|