2004-03-03 17:56:16 -05:00
|
|
|
<?xml version="1.0" ?>
|
|
|
|
|
|
|
|
<makefile>
|
2008-09-19 05:03:01 -04: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 17:56:16 -05:00
|
|
|
|
|
|
|
<include file="../build/bakefiles/common_samples.bkl"/>
|
|
|
|
|
2004-12-12 07:35:45 -05:00
|
|
|
<template id="wx_test">
|
Replace CppUnit with Catch for unit tests
Drop the legacy CppUnit testing framework used for the unit tests.
Replacing it with Catch has the advantage of not requiring CppUnit
libraries to be installed on the system in order to be able to run
tests (Catch is header-only and a copy of it is now included in the
main repository itself) and, in the future, of being able to write
the tests in a much more natural way.
For now, however, avoid changing the existing tests code as much as
[reasonably] possible to avoid introducing bugs in them and provide
the CppUnit compatibility macros in the new wx/catch_cppunit.h header
which allow to preserve the 99% of the existing code unchanged. Some
of the required changes are:
- Decompose asserts using "a && b" conditions into multiple asserts
checking "a" and "b" independently. This would have been better
even with CppUnit (to know which part of condition exactly failed)
and is required with Catch.
- Use extra parentheses around such conditions when they can't be
easily decomposed in the arrays test, due to the use of macros.
This is not ideal from the point of view of messages given when
the tests fail but will do for now.
- Rewrite asserts using "a || b" as a combination of condition
checks and assert macros. Again, this is better anyhow, and is
required with Catch. Incidentally, this allowed to fix a bug in
the "exec" unit test which didn't leave enough time for the new
process to be launched before trying to kill it.
- Remove multiple CPPUNIT_TEST_SUITE_NAMED_REGISTRATION() macros,
our emulation of this macro can be used only once.
- Provide string conversions using Catch-specific StringMaker for
a couple of types.
- Replace custom wxImage comparison with a Catch-specific matcher
class.
- Remove most of test running logic from test.cpp, in particular don't
parse command line ourselves any longer but use Catch built-in
command line parser. This is a source of a minor regression:
previously, both "Foo" and "FooTestCase" could be used as the name of
the test to run, but now only the latter is accepted.
2017-11-01 14:15:24 -04:00
|
|
|
<include>$(TOP_SRCDIR)3rdparty/catch/include</include>
|
2004-12-14 15:29:20 -05:00
|
|
|
|
2004-11-22 00:00:19 -05:00
|
|
|
<if cond="WX_DISABLE_PRECOMP_HEADERS=='0'">
|
2012-04-29 19:22:28 -04:00
|
|
|
<if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'">
|
2004-11-22 00:00:19 -05: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 07:35:45 -05:00
|
|
|
</template>
|
2004-11-22 00:00:19 -05:00
|
|
|
|
2004-12-12 07:35:45 -05:00
|
|
|
<exe id="test" template="wx_sample_console,wx_test"
|
|
|
|
template_append="wx_append_base">
|
2004-03-03 17:56:16 -05:00
|
|
|
<sources>
|
|
|
|
test.cpp
|
2009-09-19 04:51:11 -04:00
|
|
|
any/anytest.cpp
|
2004-11-10 18:58:38 -05:00
|
|
|
archive/archivetest.cpp
|
2005-02-10 09:06:08 -05:00
|
|
|
archive/ziptest.cpp
|
2006-10-27 06:11:46 -04:00
|
|
|
archive/tartest.cpp
|
2004-10-27 18:47:26 -04:00
|
|
|
arrays/arrays.cpp
|
2007-07-09 21:51:43 -04:00
|
|
|
base64/base64.cpp
|
2008-04-12 13:03:09 -04:00
|
|
|
cmdline/cmdlinetest.cpp
|
2007-07-21 19:51:19 -04:00
|
|
|
config/fileconf.cpp
|
2010-06-02 10:12:07 -04:00
|
|
|
config/regconf.cpp
|
2004-10-31 00:41:27 -04:00
|
|
|
datetime/datetimetest.cpp
|
2009-02-01 18:20:27 -05:00
|
|
|
events/evthandler.cpp
|
2013-07-02 20:26:13 -04:00
|
|
|
events/evtlooptest.cpp
|
2009-10-22 07:35:43 -04:00
|
|
|
events/evtsource.cpp
|
2010-05-16 11:44:17 -04:00
|
|
|
events/stopwatch.cpp
|
2008-10-27 18:04:42 -04:00
|
|
|
events/timertest.cpp
|
2009-03-23 12:23:44 -04:00
|
|
|
exec/exec.cpp
|
2010-06-19 08:32:57 -04:00
|
|
|
file/dir.cpp
|
2010-06-13 10:30:55 -04:00
|
|
|
file/filefn.cpp
|
2009-09-12 18:40:42 -04:00
|
|
|
file/filetest.cpp
|
2005-02-12 16:53:51 -05:00
|
|
|
filekind/filekind.cpp
|
2004-10-31 00:41:27 -04:00
|
|
|
filename/filenametest.cpp
|
|
|
|
filesys/filesystest.cpp
|
|
|
|
fontmap/fontmaptest.cpp
|
|
|
|
formatconverter/formatconvertertest.cpp
|
2009-10-22 07:35:43 -04:00
|
|
|
fswatcher/fswatchertest.cpp
|
2004-05-22 13:52:44 -04:00
|
|
|
hashes/hashes.cpp
|
2010-06-21 17:03:47 -04:00
|
|
|
interactive/output.cpp
|
|
|
|
interactive/input.cpp
|
2007-03-26 17:12:13 -04:00
|
|
|
intl/intltest.cpp
|
2004-12-08 17:39:22 -05:00
|
|
|
lists/lists.cpp
|
2009-07-07 08:19:34 -04:00
|
|
|
log/logtest.cpp
|
2004-10-31 00:41:27 -04:00
|
|
|
longlong/longlongtest.cpp
|
2006-04-05 10:38:42 -04:00
|
|
|
mbconv/convautotest.cpp
|
2004-10-31 00:41:27 -04:00
|
|
|
mbconv/mbconvtest.cpp
|
2010-06-13 10:30:55 -04:00
|
|
|
misc/dynamiclib.cpp
|
|
|
|
misc/environ.cpp
|
2010-06-14 11:12:37 -04:00
|
|
|
misc/metatest.cpp
|
2008-08-02 18:49:01 -04:00
|
|
|
misc/misctests.cpp
|
2010-06-06 10:21:27 -04:00
|
|
|
misc/module.cpp
|
|
|
|
misc/pathlist.cpp
|
2009-11-19 14:27:24 -05:00
|
|
|
misc/typeinfotest.cpp
|
2008-07-13 22:19:34 -04:00
|
|
|
net/ipc.cpp
|
2008-10-12 16:45:29 -04:00
|
|
|
net/socket.cpp
|
2004-10-31 00:41:27 -04:00
|
|
|
regex/regextest.cpp
|
|
|
|
regex/wxregextest.cpp
|
2005-06-16 19:47:30 -04:00
|
|
|
scopeguard/scopeguardtest.cpp
|
2007-10-08 20:10:07 -04:00
|
|
|
strings/iostream.cpp
|
2011-01-19 05:47:40 -05:00
|
|
|
strings/numformatter.cpp
|
2004-04-20 14:55:09 -04:00
|
|
|
strings/strings.cpp
|
2004-05-21 03:59:14 -04:00
|
|
|
strings/stdstrings.cpp
|
2005-12-20 11:30:12 -05:00
|
|
|
strings/tokenizer.cpp
|
2007-03-17 06:26:10 -04:00
|
|
|
strings/unichar.cpp
|
2004-04-30 16:26:14 -04:00
|
|
|
strings/unicode.cpp
|
2007-03-17 06:26:10 -04:00
|
|
|
strings/vararg.cpp
|
2004-06-03 15:48:31 -04:00
|
|
|
strings/crt.cpp
|
2006-05-28 11:18:15 -04:00
|
|
|
strings/vsnprintf.cpp
|
2017-02-23 14:01:48 -05:00
|
|
|
strings/hexconv.cpp
|
2004-11-24 17:31:25 -05:00
|
|
|
streams/datastreamtest.cpp
|
2004-04-18 15:26:20 -04:00
|
|
|
streams/ffilestream.cpp
|
2006-10-23 17:58:35 -04:00
|
|
|
streams/fileback.cpp
|
2004-04-18 15:26:20 -04:00
|
|
|
streams/filestream.cpp
|
2008-06-15 13:34:50 -04:00
|
|
|
streams/iostreams.cpp
|
2005-02-04 04:43:47 -05:00
|
|
|
streams/largefile.cpp
|
2018-03-30 15:55:36 -04:00
|
|
|
streams/lzmastream.cpp
|
2004-04-18 15:26:20 -04:00
|
|
|
streams/memstream.cpp
|
2008-07-07 20:19:54 -04:00
|
|
|
streams/socketstream.cpp
|
2004-09-19 18:00:16 -04:00
|
|
|
streams/sstream.cpp
|
2009-05-02 14:29:33 -04:00
|
|
|
streams/stdstream.cpp
|
2005-03-13 11:20:51 -05:00
|
|
|
streams/tempfile.cpp
|
2004-11-21 13:26:38 -05:00
|
|
|
streams/textstreamtest.cpp
|
2004-04-18 15:26:20 -04:00
|
|
|
streams/zlibstream.cpp
|
2006-03-31 08:46:38 -05:00
|
|
|
textfile/textfiletest.cpp
|
2007-07-04 16:54:14 -04:00
|
|
|
thread/atomic.cpp
|
2010-05-10 17:48:24 -04:00
|
|
|
thread/misc.cpp
|
2007-10-31 21:35:20 -04:00
|
|
|
thread/queue.cpp
|
2008-08-29 19:28:42 -04:00
|
|
|
thread/tls.cpp
|
2010-05-29 03:56:08 -04:00
|
|
|
uris/ftp.cpp
|
2004-11-04 16:54:29 -05:00
|
|
|
uris/uris.cpp
|
2009-06-01 07:46:36 -04:00
|
|
|
uris/url.cpp
|
2007-07-07 06:09:42 -04:00
|
|
|
vectors/vectors.cpp
|
2008-01-12 20:12:13 -05:00
|
|
|
weakref/evtconnection.cpp
|
|
|
|
weakref/weakref.cpp
|
2008-02-10 12:03:23 -05:00
|
|
|
xlocale/xlocale.cpp
|
2008-03-29 18:55:35 -04:00
|
|
|
xml/xmltest.cpp
|
2004-03-03 17:56:16 -05:00
|
|
|
</sources>
|
2004-11-04 16:54:29 -05:00
|
|
|
<wx-lib>net</wx-lib>
|
2008-03-29 18:55:35 -04:00
|
|
|
<wx-lib>xml</wx-lib>
|
2009-05-30 09:54:22 -04:00
|
|
|
<wx-lib>base</wx-lib>
|
2004-03-03 17:56:16 -05:00
|
|
|
</exe>
|
2004-12-14 15:29:20 -05:00
|
|
|
|
2014-03-18 15:31:21 -04:00
|
|
|
<!--
|
|
|
|
This test program is targeted to "headless GUI" tests, tests which are
|
|
|
|
typically tied to the "core" component but that should run nicely in a
|
|
|
|
console only program. This program should be executable from a console
|
|
|
|
only Unix session (such as telnet or ssh) although it uses graphics
|
|
|
|
contexts, so if you modify this project, please check that it can still
|
|
|
|
be ran in such configuration and doesn't require an X server connection.
|
|
|
|
-->
|
|
|
|
<exe id="test_drawing" template="wx_sample_console,wx_test"
|
2014-05-16 05:59:10 -04:00
|
|
|
template_append="wx_append"
|
2014-04-01 18:49:04 -04:00
|
|
|
cond="USE_GUI=='1'">
|
2014-03-18 15:31:21 -04:00
|
|
|
<sources>
|
|
|
|
test.cpp
|
|
|
|
drawing/drawing.cpp
|
|
|
|
drawing/plugindriver.cpp
|
|
|
|
drawing/basictest.cpp
|
2014-05-17 08:29:21 -04:00
|
|
|
drawing/fonttest.cpp
|
2014-03-18 15:31:21 -04:00
|
|
|
</sources>
|
|
|
|
<wx-lib>core</wx-lib>
|
|
|
|
<wx-lib>net</wx-lib>
|
|
|
|
<wx-lib>base</wx-lib>
|
|
|
|
</exe>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
This is a sample plugin, it simply uses a wxImage based
|
|
|
|
wxGraphicsContext. It should render the same as the built-in test. Use
|
|
|
|
the WX_TEST_SUITE_GC_DRAWING_PLUGINS variable to specify the location of
|
|
|
|
the produced DLL/so to get it loaded and tested. To make your own plugin,
|
|
|
|
you can copy this sample and link toward your own implementation of
|
|
|
|
wxGraphicsContext interface, building the appropriate DrawingTestGCFactory
|
|
|
|
-->
|
|
|
|
<module id="test_drawingplugin" template="wx"
|
2014-05-16 05:59:10 -04:00
|
|
|
template_append="wx_append"
|
2014-05-16 06:53:55 -04:00
|
|
|
cond="USE_GUI=='1' and SHARED=='1'">
|
2014-03-18 15:31:21 -04:00
|
|
|
<define>$(DLLFLAG)</define>
|
|
|
|
<sources>
|
|
|
|
drawing/pluginsample.cpp
|
|
|
|
</sources>
|
|
|
|
<wx-lib>core</wx-lib>
|
|
|
|
<wx-lib>base</wx-lib>
|
|
|
|
</module>
|
2004-12-12 07:35:45 -05:00
|
|
|
|
|
|
|
<exe id="test_gui" template="wx_sample,wx_test"
|
|
|
|
template_append="wx_append"
|
|
|
|
cond="USE_GUI=='1'">
|
2004-12-12 14:25:46 -05:00
|
|
|
|
|
|
|
<!-- link against GUI libraries, but be a console app: -->
|
|
|
|
<app-type>console</app-type>
|
2004-12-14 15:29:20 -05:00
|
|
|
|
2004-12-12 07:35:45 -05:00
|
|
|
<sources>
|
2010-08-22 18:16:05 -04:00
|
|
|
asserthelper.cpp
|
2004-12-12 07:35:45 -05:00
|
|
|
test.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
testableframe.cpp
|
2004-12-12 14:23:19 -05:00
|
|
|
geometry/rect.cpp
|
2004-12-14 15:29:20 -05:00
|
|
|
geometry/size.cpp
|
|
|
|
geometry/point.cpp
|
2011-10-18 17:56:48 -04:00
|
|
|
geometry/region.cpp
|
2010-03-28 19:20:49 -04:00
|
|
|
graphics/bitmap.cpp
|
2009-09-19 12:29:50 -04:00
|
|
|
graphics/colour.cpp
|
2010-03-10 08:57:47 -05:00
|
|
|
graphics/ellipsization.cpp
|
2009-04-15 18:38:53 -04:00
|
|
|
graphics/measuring.cpp
|
2011-04-26 18:57:20 -04:00
|
|
|
graphics/affinematrix.cpp
|
2014-07-25 21:34:50 -04:00
|
|
|
graphics/boundingbox.cpp
|
2016-06-29 14:51:15 -04:00
|
|
|
graphics/clippingbox.cpp
|
2016-09-18 17:09:44 -04:00
|
|
|
graphics/graphmatrix.cpp
|
2018-07-02 14:08:29 -04:00
|
|
|
graphics/graphpath.cpp
|
2007-07-21 19:51:19 -04:00
|
|
|
config/config.cpp
|
2018-12-18 01:57:43 -05:00
|
|
|
controls/auitest.cpp
|
2010-08-22 18:16:05 -04: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 06:18:30 -04:00
|
|
|
controls/comboboxtest.cpp
|
2011-08-10 11:24:25 -04:00
|
|
|
controls/dataviewctrltest.cpp
|
2011-06-19 18:46:45 -04:00
|
|
|
controls/datepickerctrltest.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/frametest.cpp
|
|
|
|
controls/gaugetest.cpp
|
|
|
|
controls/gridtest.cpp
|
2008-12-03 16:53:10 -05:00
|
|
|
controls/headerctrltest.cpp
|
2010-11-27 06:34:34 -05:00
|
|
|
controls/htmllboxtest.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/hyperlinkctrltest.cpp
|
|
|
|
controls/itemcontainertest.cpp
|
2010-03-21 17:39:15 -04:00
|
|
|
controls/label.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/listbasetest.cpp
|
|
|
|
controls/listbooktest.cpp
|
|
|
|
controls/listboxtest.cpp
|
2008-12-03 16:53:10 -05:00
|
|
|
controls/listctrltest.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/listviewtest.cpp
|
2011-02-27 07:46:42 -05:00
|
|
|
controls/markuptest.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/notebooktest.cpp
|
2010-12-20 08:55:40 -05:00
|
|
|
controls/ownerdrawncomboboxtest.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/pickerbasetest.cpp
|
|
|
|
controls/pickertest.cpp
|
|
|
|
controls/radioboxtest.cpp
|
|
|
|
controls/radiobuttontest.cpp
|
|
|
|
controls/rearrangelisttest.cpp
|
|
|
|
controls/richtextctrltest.cpp
|
2013-01-19 21:09:44 -05:00
|
|
|
controls/searchctrltest.cpp
|
2013-06-23 12:38:51 -04:00
|
|
|
controls/simplebooktest.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/slidertest.cpp
|
|
|
|
controls/spinctrldbltest.cpp
|
|
|
|
controls/spinctrltest.cpp
|
2019-03-20 16:17:34 -04:00
|
|
|
controls/styledtextctrltest.cpp
|
2007-09-25 20:28:31 -04:00
|
|
|
controls/textctrltest.cpp
|
2008-09-19 04:55:25 -04:00
|
|
|
controls/textentrytest.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/togglebuttontest.cpp
|
|
|
|
controls/toolbooktest.cpp
|
|
|
|
controls/treebooktest.cpp
|
2009-01-17 08:16:25 -05:00
|
|
|
controls/treectrltest.cpp
|
2011-08-27 10:11:03 -04:00
|
|
|
controls/treelistctrltest.cpp
|
2010-11-13 10:03:20 -05:00
|
|
|
controls/virtlistctrltest.cpp
|
2011-07-08 04:19:25 -04:00
|
|
|
controls/webtest.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/windowtest.cpp
|
2012-11-01 12:45:11 -04:00
|
|
|
controls/dialogtest.cpp
|
2009-03-22 17:31:34 -04:00
|
|
|
events/clone.cpp
|
2013-07-02 20:26:13 -04:00
|
|
|
<!--
|
|
|
|
Duplicate this file here to test GUI event loops too.
|
|
|
|
-->
|
|
|
|
events/evtlooptest.cpp
|
2009-01-16 11:21:50 -05:00
|
|
|
events/propagation.cpp
|
2010-09-11 06:18:31 -04:00
|
|
|
events/keyboard.cpp
|
2013-07-02 20:32:40 -04:00
|
|
|
<!--
|
|
|
|
And duplicate this one too as wxExecute behaves differently in
|
|
|
|
console and GUI applications.
|
|
|
|
-->
|
|
|
|
exec/exec.cpp
|
2009-03-18 11:32:28 -04:00
|
|
|
font/fonttest.cpp
|
2009-06-01 07:46:36 -04:00
|
|
|
image/image.cpp
|
2008-05-30 15:30:23 -04:00
|
|
|
image/rawbmp.cpp
|
2011-01-13 09:49:55 -05:00
|
|
|
html/htmlparser.cpp
|
2008-10-15 11:55:25 -04:00
|
|
|
html/htmlwindow.cpp
|
2018-05-23 12:12:26 -04:00
|
|
|
html/htmprint.cpp
|
2010-12-03 07:39:57 -05:00
|
|
|
menu/accelentry.cpp
|
2010-11-13 10:03:02 -05:00
|
|
|
menu/menu.cpp
|
2008-09-22 12:03:45 -04:00
|
|
|
misc/guifuncs.cpp
|
2008-03-31 11:22:10 -04:00
|
|
|
misc/selstoretest.cpp
|
2009-01-10 19:39:22 -05:00
|
|
|
misc/garbage.cpp
|
2013-10-14 11:08:35 -04:00
|
|
|
misc/safearrayconverttest.cpp
|
2009-03-24 19:13:02 -04:00
|
|
|
misc/settings.cpp
|
2008-12-27 06:14:10 -05: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
|
2017-12-14 18:43:24 -05:00
|
|
|
persistence/tlw.cpp
|
|
|
|
persistence/dataview.cpp
|
2018-11-18 16:48:28 -05:00
|
|
|
rowheightcache/rowheightcachetest.cpp
|
2010-03-18 11:07:10 -04:00
|
|
|
sizers/boxsizer.cpp
|
2015-04-04 12:19:49 -04:00
|
|
|
sizers/gridsizer.cpp
|
2011-02-08 08:36:13 -05:00
|
|
|
sizers/wrapsizer.cpp
|
2011-05-01 10:58:58 -04:00
|
|
|
toplevel/toplevel.cpp
|
2011-01-19 05:48:28 -05:00
|
|
|
validators/valnum.cpp
|
2018-12-31 18:55:14 -05:00
|
|
|
validators/valtext.cpp
|
2008-05-24 22:56:22 -04:00
|
|
|
window/clientsize.cpp
|
2008-05-24 23:08:31 -04:00
|
|
|
window/setsize.cpp
|
2010-11-07 09:00:59 -05:00
|
|
|
xml/xrctest.cpp
|
2004-12-12 07:35:45 -05:00
|
|
|
</sources>
|
2011-10-30 10:19:59 -04: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
|
2019-03-20 16:17:34 -04:00
|
|
|
wxWebView or wxSTC is not available.
|
2011-10-30 10:19:59 -04:00
|
|
|
-->
|
|
|
|
<sys-lib>$(WXLIB_WEBVIEW)</sys-lib>
|
2019-03-20 16:17:34 -04:00
|
|
|
<sys-lib>$(WXLIB_STC)</sys-lib>
|
2018-12-18 01:57:43 -05:00
|
|
|
<wx-lib>aui</wx-lib>
|
2010-08-22 18:16:05 -04:00
|
|
|
<wx-lib>richtext</wx-lib>
|
2009-01-10 19:39:22 -05:00
|
|
|
<wx-lib>media</wx-lib>
|
|
|
|
<wx-lib>xrc</wx-lib>
|
|
|
|
<wx-lib>xml</wx-lib>
|
2008-10-15 11:55:25 -04:00
|
|
|
<wx-lib>html</wx-lib>
|
2004-12-12 07:35:45 -05:00
|
|
|
<wx-lib>core</wx-lib>
|
2008-12-27 06:14:10 -05:00
|
|
|
<wx-lib>net</wx-lib>
|
2004-12-12 07:35:45 -05:00
|
|
|
<wx-lib>base</wx-lib>
|
|
|
|
</exe>
|
|
|
|
|
2004-03-03 17:56:16 -05:00
|
|
|
|
2004-04-30 16:26:14 -04:00
|
|
|
<wx-data id="data">
|
|
|
|
<files>testdata.fc</files>
|
2019-01-30 11:28:08 -05:00
|
|
|
|
2009-06-01 07:46:36 -04:00
|
|
|
<!-- test data for image/image.cpp test unit: -->
|
2019-01-30 11:28:08 -05:00
|
|
|
<files>horse.ani horse.bmp horse.cur horse.gif horse.ico horse.jpg
|
2009-06-01 07:46:36 -04:00
|
|
|
horse.pcx horse.png horse.pnm horse.tga horse.tif horse.xpm</files>
|
2004-04-30 16:26:14 -04:00
|
|
|
</wx-data>
|
|
|
|
|
2011-08-19 12:10:07 -04:00
|
|
|
<wx-data id="data-images">
|
|
|
|
<srcdir>$(SRCDIR)/image</srcdir>
|
|
|
|
<dstdir>image</dstdir>
|
2013-07-01 10:47:12 -04: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
|
2017-04-14 18:11:39 -04:00
|
|
|
|
|
|
|
cross_bicubic_256x256.png
|
|
|
|
cross_bilinear_256x256.png
|
|
|
|
cross_box_average_256x256.png
|
|
|
|
cross_nearest_neighb_256x256.png
|
2013-07-01 10:47:12 -04:00
|
|
|
</files>
|
2011-08-19 12:10:07 -04:00
|
|
|
</wx-data>
|
|
|
|
|
2007-03-26 17:12:13 -04: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"/>
|
2016-06-24 17:34:58 -04:00
|
|
|
<wx-data id="ja" template="catalog"/>
|
2006-09-05 17:14:38 -04:00
|
|
|
|
|
|
|
|
2009-04-16 10:47:22 -04: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
|
2014-04-11 20:10:54 -04:00
|
|
|
failtest: failtest_combobox failtest_evthandler failtest_weakref
|
2011-08-21 08:06:16 -04:00
|
|
|
|
|
|
|
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 10:47:22 -04:00
|
|
|
@$(RM) test_evthandler.o
|
2009-04-16 17:33:37 -04:00
|
|
|
@for d in GLOBAL STATIC METHOD FUNCTOR NO_HANDLER DERIVED WRONG_CLASS; do \
|
2009-04-16 10:47:22 -04: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
|
|
|
|
|
2014-04-11 20:10:54 -04:00
|
|
|
failtest_weakref:
|
|
|
|
@$(RM) test_weakref.o
|
|
|
|
if $(MAKE) CXXWARNINGS=-DTEST_INVALID_INCOMPLETE_WEAKREF test_weakref.o 2>/dev/null; then \
|
|
|
|
echo "*** Compilation with TEST_INVALID_INCOMPLETE_WEAKREF unexpectedly succeeded.">&2; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
exit 0
|
|
|
|
|
2009-04-16 10:47:22 -04:00
|
|
|
.PHONY: failtest
|
|
|
|
</fragment>
|
2006-09-05 17:14:38 -04:00
|
|
|
|
2004-03-03 17:56:16 -05:00
|
|
|
</makefile>
|