wdas/partio — pull request #26 by fgochez (2012-05-31 21:59:42+00:00)
Title: Refactoring tests

The tests have been restructured and enhanced for maintainability. In outline, the following changes have been made:

- Created a "testall" build target that generates a single "testall" executable which runs all tests.
- Removed "main" functions from tests and moved them to a stand-alone testxxx_main.cpp file. These will allow individual tests to be run in a standalone fashion.
- Refactored existing tests to make structure more consistent, added PartioTests namespace.
- Moved old "testkdtree.cpp" tests to "testparticlessimple.cpp", and added a new set of tests which test the KdTree class in a standalone fashion to "testkdtree.cpp".

In general existing test logic has not really been changed except for the KdTree tests, so modification of the tests is work in progress. However, I think it might be a good time to merge in the new structure and continue enhancing tests in the future.

Ongoing discussion:
http://groups.google.com/group/partio-discuss/browse_thread/thread/19984fe2b39749e4