first try to use a unit test based framework

Tomaz Canabrava tcanabrava at kde.org
Mon Apr 14 12:51:33 PDT 2014


two patches that goes on top of the last three ones:

1 - list of files insteaf of grepping to *.c
2 - specify the libdcdevel path


On Mon, Apr 14, 2014 at 2:35 PM, Tomaz Canabrava <tcanabrava at kde.org> wrote:

> Second try, with dirk's input on IRC.
>
>
> On Mon, Apr 14, 2014 at 1:46 PM, Tomaz Canabrava <tcanabrava at kde.org>wrote:
>
>>
>> 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/6242fb90/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Add-the-option-to-specify-the-LIBDCDEVEL-path.patch
Type: text/x-patch
Size: 1259 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/6242fb90/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Use-a-list-of-files-instead-of-filtering-for-.c.patch
Type: text/x-patch
Size: 3725 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/6242fb90/attachment-0001.bin>


More information about the subsurface mailing list