[Bug 641] New: Migrate from CppUnit to boost::tests (UTF)

For more infomation about this bug, visit https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=641
Summary: Migrate from CppUnit to boost::tests (UTF)
Product: RTT
Version: rtt-trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: Tests
AssignedTo: orocos-dev [..] ...
ReportedBy: peter [dot] soetens [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

I've been evaluating the boost::tests port started by Jimmy Jorgensen. My
Boost version is 1.35.0.
Today we're using CppUnit, which looks less flexible/less portable.

Pros:
* Portable + we depend already on boost
* Allows command line options to tweak output and behaviour
* Smarter unit test function definition macros than in CppUnit

Cons:
* The documentation is overly complex and in 'foreign' english.
* The API changes across boost versions (Jimmy's code did not compile with my
version, it could be too old.)
* (Maybe only in older versions: ) helper funtions can not be placed
in a 'BOOST_AUTO' (where all unit test functions are declared) region.
* Progress indicator is horrible and not changeable (?)
* When a BOOST_CHECK fails, it keeps executing the test instead of aborting it.
this then leads possibly to a segfault, aborting all to-be-run tests

None of these con's are really show stoppers, and may be solved in recent boost
versions already.

The most annoying part is that the code base of the port is pre-1.6, which is
pretty old
already. This complicates migrating. The Windows/AnyOtherOs users can use the
attached patches to test
their OS'es for RTT 1.8. Only one unit test should fail ( typesTest ).

Make sure to set ENABLE_TESTS=OFF and ENABLE_BOOST_TESTS=ON in your CMake
configuration.

Any feedback welcome.

[Bug 641] Migrate from CppUnit to boost::tests (UTF)

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=641

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |1.10.0
Resolution| |FIXED
Status|NEW |RESOLVED

--- Comment #6 from Peter Soetens <peter [..] ...> 2009-08-12 23:46:20 ---
Closing this. RTT 1.10 and later use Boost UTF.

[Bug 641] Migrate from CppUnit to boost::tests (UTF)

For more infomation about this bug, visit https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=641

--- Comment #5 from Peter Soetens <peter [dot] soetens [..] ...> 2009-03-25 13:12:07 ---
Created an attachment (id=412)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=412)
0005-Merged-cppunit-changes-into-boost-branch-from-rev-df

This patch 'closes' the boost UTF port. Is now equivalent to CppUnit.

[Bug 641] Migrate from CppUnit to boost::tests (UTF)

For more infomation about this bug, visit https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=641

--- Comment #4 from Peter Soetens <peter [dot] soetens [..] ...> 2009-03-25 13:11:12 ---
Created an attachment (id=411)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=411)
0004-Ported-CORBA-test-to-boost-tests-too

Initial port of CORBA tests, needs next patch to pass tests.

[Bug 641] Migrate from CppUnit to boost::tests (UTF)

For more infomation about this bug, visit https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=641

--- Comment #3 from Peter Soetens <peter [dot] soetens [..] ...> 2009-03-24 17:20:48 ---
Created an attachment (id=410)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=410)
0003-Fixed-most-boost-unit-tests

Re-ordering of BOOST_AUTO statements, various fixes to make this work for
1.8.x.
Only typesTest still fails.

[Bug 641] Migrate from CppUnit to boost::tests (UTF)

For more infomation about this bug, visit https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=641

--- Comment #2 from Peter Soetens <peter [dot] soetens [..] ...> 2009-03-24 17:19:33 ---
Created an attachment (id=409)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=409)
0002-Fixups-for-boost-tests-UTF

First trial-and-error fixes to get it working with Boost 1.35.0

[Bug 641] Migrate from CppUnit to boost::tests (UTF)

For more infomation about this bug, visit https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=641

--- Comment #1 from Peter Soetens <peter [dot] soetens [..] ...> 2009-03-24 17:18:49 ---
Created an attachment (id=408)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=408)
0001-Port-unit-tests-to-Boost-test-framework

Initial patch by J.Jorgensen