first try to use a unit test based framework

Tomaz Canabrava tcanabrava at kde.org
Mon Apr 14 09:46:08 PDT 2014


So -
CMake has a testing framework called CTest that can generate html reports
and it's easy to integrate a new test on it. I created this in cmake *only*
because it was what I had used before, tried to learn the docs for qmake +
tests and it was a bit frustrating / hard to do.


what this does right now:
1 - compiles subsurface in small libraries
( core, ui, profile )
2 - compiles tests that are linked to those libraries
3 - run tests by running 'make test'

make test will run
a few tests are failing, even using IS_FP_SAME, and the plan is to increase
the amount
of code tested to 100% over time ( we can also include the gcov tool to get
the percent of code that is tested. )

Tomaz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/f6e90479/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-Rework-double-comparisson-to-use-IS_FP_SAME-macro.patch
Type: text/x-patch
Size: 1169 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/f6e90479/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-Implement-the-first-testcase.patch
Type: text/x-patch
Size: 4550 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/f6e90479/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-Better-Library-Handling-by-pkg-config-macro.patch
Type: text/x-patch
Size: 1295 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/f6e90479/attachment-0013.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Updated-gitignore-in-regard-of-out-of-source-builds.patch
Type: text/x-patch
Size: 548 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/f6e90479/attachment-0014.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-More-cleanup.patch
Type: text/x-patch
Size: 2423 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/f6e90479/attachment-0015.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Massive-code-cleanup-on-the-CMake-file.patch
Type: text/x-patch
Size: 2725 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/f6e90479/attachment-0016.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Link-to-marbledata-small-fixes-on-the-CMakeLists.patch
Type: text/x-patch
Size: 2964 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/f6e90479/attachment-0017.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Compiled-Executable-on-CMake.patch
Type: text/x-patch
Size: 4720 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/f6e90479/attachment-0018.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Made-the-core-lib-compile-in-C11-mode.patch
Type: text/x-patch
Size: 2371 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/f6e90479/attachment-0019.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-First-stub-of-a-CMakeLists.txt-make-generator.patch
Type: text/x-patch
Size: 2644 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/f6e90479/attachment-0020.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Removed-cochram.c-file-that-was-unused.patch
Type: text/x-patch
Size: 9067 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/f6e90479/attachment-0021.bin>


More information about the subsurface mailing list