[cmake-developers] Testing Groups

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Mon Jun 10 11:04:15 EDT 2013


Hi Andreas,

Sounds like a very interesting idea.

Instead of introducing the GROUP parameter in the "add_test" command, may
be the LABEL could be re-used ?

Would also be nice to consider the concept of resource locking while
thinking about this. [1]

Jc

[1] http://www.cmake.org/Bug/view.php?id=14077



On Mon, Jun 10, 2013 at 3:19 AM, Andreas Schneider <asn at cryptomilk.org>wrote:

> Hi,
>
> I'm currently working on some libraries [1] which allows you advanced
> testing
> of daemons. Especially ones which require a network in testing. However for
> using this I need some features in CMake. This should be a discussion about
> these features. Maybe others have ideas and comments.
>
> What I would like to have is a feature to group tests. By default
> everything
> is in a standard test group. But you can define a special one:
>
> add_test(NAME <name> [CONFIGURATIONS [Debug|Release|...]]
>          [GROUP <test_group>]
>          [WORKING_DIRECTORY dir]
>          COMMAND <command> [arg1 [arg2 ...]])
>
>
> For a test group I need a way to define a setup/teardown command. Some
> tests
> might require a special setup on the machine to be able to run correctly.
> Like
> setting up a fake network.
>
> set_test_group_properties(PROPERTIES
>     SETUP <command> [arg1 [arg2 ...]]
>     TEARDOWN <command> [arg1 [arg2 ...]]
>     ENVIRONMENT <env>)
>
> The setup function is called before the first test of the group is executed
> and the teardown functions after the last test finished. The environment
> should be obvious.
>
>
> Please comment.
>
>
>         -- andreas
>
>
>
> [1] http://git.cryptomilk.org/projects/socket_wrapper.git/
>
> --
> Andreas Schneider                   GPG-ID: F33E3FC6
> www.cryptomilk.org                asn at cryptomilk.org
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20130610/3478bba8/attachment.html>


More information about the cmake-developers mailing list