The cxxtest directory is a copy of the testing infrastructure itself... it's copied from upstream and will ultimately be removed [1]. The files you're actually interested in are src/*/*-test.h
To implement a new test, it should be fairly straightforward:
1. Copy one of the existing tests (as you suggested) and modify it to your needs. 2. Hook it up by adding it to the CXXTEST_TESTSUITES macro in src/Makefile_insert.
The actual test program is generated automatically using the cxxtests.cpp: rule in src/Makefile.am and it is added to the list of tests using the TESTS macro in the same file. You don't need to change anything in that respect.
One important point to note is that the test suite is currently marked as a known-failure (using the XFAIL_TESTS macro). [2] Until we've fixed all the failing tests, we can't benefit from automated build-time testing on Launchpad. I suspect, however, that the issues are all very simple to fix for people who are familiar with the related code.
Cheers,
AV
[1] https://bugs.launchpad.net/inkscape/+bug/1094771 [2] https://bugs.launchpad.net/inkscape/+bug/1249324
On 29 January 2014 14:25, Martin Owens <doctormo@...400...> wrote:
Hi devs,
I want to write a test suite for uri.h/uri.cpp; I had a look to see if there are existing tests for the code and I admit I find myself a little confused. There's a directory called cxxtest which contains tests and then there are *-test.h files in the actual codebase.
My feeling is to use extract-uri-test.h, copy it for a new uri-test.h file. But this might be wrong.
New URI functionality includes: dealing with data uri, getting full path name (previous work) and further intergration between it and io/uristream.cpp to feed that lovely data in transparently when needed. Should conclude with the ability to quickly move any href from attribute to workable data.
Martin,
WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.cl... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel