On Fri, Oct 5, 2012 at 2:53 PM, Marc-André Moreau <
marcandre.mor...@gmail.com> wrote:

> Hi,
>
> I've been wanting to move away from cunit for a while, because it's a pain
> to integrate properly with build configuration management, and windows
> support is not good, plus there is lack of good ways to produce reports.
>
> I managed to figure out how to use CTest. It is extremely flexible and
> will do the job much better than cunit. I've been writing tests for WinPR
> all last week, and eventually we should migrate the FreeRDP tests to CTest
> as well. The cool thing is that CTest does not enforce a particular testing
> framework, you can write simple test programs and the return code of the
> executable will tell cmake if the test passed. You can even turn on/off
> verbose mode, such that your test code can output some info with printf
> without poluting test reports.
>
> Just take a look at the test suites I've written inside the WinPR modules,
> this is what we'll be using in the future. We'll also be able to integrate
> CTest with CDash and also automate the test runs in the future. CDash will
> show a dashboard of test results from the various test machines we'll be
> setting up to constantly test code when new commits are pushed on git.
>
> I highly suggest to anybody wanting to increase their CMake skills that
> they buy the book, it's helped me a lot. CMake and all the family of tools
> around it are crazy powerful but public documentation is often lacking.
>
> Oh, other cool thing with CTest: it generates executables that combine
> multiple tests without effort, and they can be ran without CTest. For
> instance, if I have a test suite called TestPath, I get TestPath.exe
> "TestName" that I can run by myself. You can pass arguments to the tests as
> well :)
>
> Right now the test suites won't compile properly when monolithic build is
> on, but I'll improve that in the future.
>
> On Fri, Oct 5, 2012 at 2:37 PM, Kevin Dalley <kdal...@vmware.com> wrote:
>
>> I notice that unit tests fail in both the latest git master, and in
>> stable.
>>
>> Are unit run regularly? Should I try to create a fix for stable so that
>> the tests pass?
>>
>>
>> ------------------------------------------------------------------------------
>> Don't let slow site performance ruin your business. Deploy New Relic APM
>> Deploy New Relic app performance management and know exactly
>> what is happening inside your Ruby, Python, PHP, Java, and .NET app
>> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
>> http://p.sf.net/sfu/newrelic-dev2dev
>> _______________________________________________
>> Freerdp-devel mailing list
>> Freerdp-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/freerdp-devel
>>
>
>
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Freerdp-devel mailing list
Freerdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to