wxWidgets/build/msw
Vadim Zeitlin e70fc11ef1 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-02 01:53:16 +01:00
..
config.bcc Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01:00
config.gcc Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01:00
config.vc Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01:00
makefile.bcc Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01:00
makefile.gcc Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01:00
makefile.vc Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01:00
wx_adv.vcxproj Add Win8+ toast notification to wxNotificationMessage. 2016-02-10 20:38:12 +01:00
wx_adv.vcxproj.filters Remove extra CRs from wx_adv.vcxproj.filters 2016-02-21 17:17:23 +01:00
wx_aui.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_aui.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_base.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_base.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_config.props Add Microsoft Visual Studio 2017 solution file for building wxMSW 2017-01-16 17:02:10 +01:00
wx_core.vcxproj Extract wxPenInfoBase in a separate header 2017-09-10 01:24:16 +02:00
wx_core.vcxproj.filters Extract wxPenInfoBase in a separate header 2017-09-10 01:24:16 +02:00
wx_custom_build.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_custom_build.vcxproj.filters Use the same project files for all MSBuild-based MSVS versions. 2014-08-05 22:01:41 +00:00
wx_gl.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_gl.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_html.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_html.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_media.vcxproj Fix horribly mangled declarations in wxMSW ActiveMovie code 2015-09-23 01:05:54 +02:00
wx_media.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_net.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_net.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_propgrid.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_propgrid.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_qa.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_qa.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_ribbon.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_ribbon.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_richtext.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_richtext.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_setup.props Don't use thread-safe statics with MSVS when targeting XP 2016-07-02 14:30:42 +02:00
wx_stc.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_stc.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_vc7_adv.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_aui.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_base.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_core.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_gl.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_html.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_media.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_net.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_propgrid.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_qa.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_ribbon.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_richtext.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_stc.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_webview.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_wxexpat.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_wxjpeg.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_wxpng.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_wxregex.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_wxscintilla.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_wxtiff.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_wxzlib.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_xml.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7_xrc.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc7.sln Extract wxPenInfoBase in a separate header 2017-09-10 01:24:16 +02:00
wx_vc8_adv.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_aui.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_base.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_core.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_gl.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_html.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_media.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_net.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_propgrid.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_qa.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_ribbon.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_richtext.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_stc.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_webview.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_wxexpat.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_wxjpeg.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_wxpng.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_wxregex.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_wxscintilla.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_wxtiff.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_wxzlib.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_xml.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8_xrc.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc8.sln Extract wxPenInfoBase in a separate header 2017-09-10 01:24:16 +02:00
wx_vc9_adv.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_aui.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_base.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_core.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_gl.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_html.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_media.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_net.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_propgrid.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_qa.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_ribbon.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_richtext.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_stc.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_webview.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_wxexpat.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_wxjpeg.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_wxpng.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_wxregex.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_wxscintilla.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_wxtiff.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_wxzlib.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_xml.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9_xrc.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
wx_vc9.sln Extract wxPenInfoBase in a separate header 2017-09-10 01:24:16 +02:00
wx_vc10.sln Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_vc11.sln Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_vc12.sln Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_vc14.sln Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_vc15.sln Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_webview.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_webview.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_wxexpat.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_wxexpat.vcxproj.filters Use the same project files for all MSBuild-based MSVS versions. 2014-08-05 22:01:41 +00:00
wx_wxjpeg.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_wxjpeg.vcxproj.filters Use the same project files for all MSBuild-based MSVS versions. 2014-08-05 22:01:41 +00:00
wx_wxpng.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_wxpng.vcxproj.filters Use the same project files for all MSBuild-based MSVS versions. 2014-08-05 22:01:41 +00:00
wx_wxregex.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_wxregex.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_wxscintilla.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_wxscintilla.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_wxtiff.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_wxtiff.vcxproj.filters Use the same project files for all MSBuild-based MSVS versions. 2014-08-05 22:01:41 +00:00
wx_wxzlib.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_wxzlib.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_xml.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_xml.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_xrc.vcxproj Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00
wx_xrc.vcxproj.filters Use canonical format for MSVS project/solution files 2017-03-18 15:14:26 +01:00