[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    [CMake] ctest - run commands before and after tests run
From:       Crni Gorac <cgorac () gmail ! com>
Date:       2012-10-22 16:55:25
Message-ID: CAO65DGcFRt8yVgAArc_+4ECidJ+ANer_+omZ1GZ8k77gdX9vMg () mail ! gmail ! com
[Download RAW message or body]

At "CMake/Testing With CTest" Wiki page
(http://www.cmake.org/Wiki/CMake_Testing_With_CTest), it is mentioned
that:

CTest has several additional features that include:
...
    Customization of the testing by providing:
...
      Ability to run commands before and after tests are run

I need to do something alike: to be able to run small program before
any of tests are run on "make test", that will gather some system info
(in my particular case, number of GPUs available on system), and then
make this info somehow available (best way would be through command
line arguments) to test programs specified in my add_test() commands.
Is this possible, and how?

Thanks.
--

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://www.cmake.org/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic