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

Reply via email to