[Cmake-commits] [cmake-commits] hoffman committed cmCTest.cxx 1.353 1.354

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Feb 10 14:24:25 EST 2009


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv911/Source

Modified Files:
	cmCTest.cxx 
Log Message:
ENH: add the ability to run tests by labels 


Index: cmCTest.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCTest.cxx,v
retrieving revision 1.353
retrieving revision 1.354
diff -C 2 -d -r1.353 -r1.354
*** cmCTest.cxx	5 Feb 2009 21:31:33 -0000	1.353
--- cmCTest.cxx	10 Feb 2009 19:24:23 -0000	1.354
***************
*** 1814,1817 ****
--- 1814,1833 ----
        SetPersistentOption("IncludeRegularExpression", args[i].c_str());
      }
+   if(this->CheckArgument(arg, "-L", "--label-regex") && i < args.size() - 1)
+     {
+     i++;
+     this->GetHandler("test")->
+       SetPersistentOption("LabelRegularExpression", args[i].c_str());
+     this->GetHandler("memcheck")->
+       SetPersistentOption("LabelRegularExpression", args[i].c_str());
+     }
+   if(this->CheckArgument(arg, "-LE", "--label-exclude") && i < args.size() - 1)
+     {
+     i++;
+     this->GetHandler("test")->
+       SetPersistentOption("ExcludeLabelRegularExpression", args[i].c_str());
+     this->GetHandler("memcheck")->
+       SetPersistentOption("ExcludeLabelRegularExpression", args[i].c_str());
+     }
    
    if(this->CheckArgument(arg, "-E", "--exclude-regex") &&



More information about the Cmake-commits mailing list