[cmake-developers] CTest CTEST_TESTFLAGS env var?

Brad King brad.king at kitware.com
Fri May 17 08:51:53 EDT 2013


On 05/16/2013 04:56 PM, Stephen Kelly wrote:
> I run Qt unit tests like this:
> 
>  qmake && make check
> 
> The make check target runs cmake and ctest. However, this does not take 
> advantage of the ability of CTest to run tests in parallel. Rather than 
> trying to shoehorn in a -j argument via the qmake files, I'd prefer to set a 
> CTEST_TESTFLAGS variable in my shell and be done with it for all projects.
> 
> Is such a thing acceptable? How would it be implemented?

Teach cmCTest::HandleCommandLineArguments to track whether an explicit
-j option was given and if not then after the loop calling it is done
check the environment variable.

-Brad



More information about the cmake-developers mailing list