[CMake] [ctest] CTEST_CUSTOM_TESTS_IGNORE in CTestCustom.cmake ignored in script mode (ctest -S)
Alexander Neundorf
a.neundorf-work at gmx.net
Fri Nov 13 15:49:08 EST 2009
On Wednesday 11 November 2009, Maik Beckmann wrote:
> Ok, it works like this:
>
> cmCTest::ReadCustomConfigurationFileTree searches for
> CTestCustom.(cmake|ctest) and reads it. If found, this code the inte
> same method
> if ( found )
> {
> cmCTest::t_TestingHandlers::iterator it;
> for ( it = this->TestingHandlers.begin();
> it != this->TestingHandlers.end(); ++ it )
> {
> cmCTestLog(this, DEBUG,
> "* Read custom CTest configuration vectors for handler: "
> << it->first.c_str() << " (" << it->second << ")" << std::endl);
> it->second->PopulateCustomVectors(mf);
> }
> }
> gives the handlers, among them the test handler, the chance to pull
> what was found in CTestCustom.
>
> But when the handler is called, it clears the content of
> CustomTestsIgnore and tried to populate it from the current cmMakefile
> instance, which never read neither even looked for CTestCustom.
>
> Meh!
I'm also usually confused at which point ctest reads which files and which
variables make it through...
Alex
More information about the CMake
mailing list