[CMake] CMAKE/CTEST input test file

Edward Flanigan eflanigan00 at hotmail.com
Wed Jul 30 17:48:37 EDT 2008


 



> Date: Wed, 30 Jul 2008 17:29:15 -0400> From: bill.hoffman at kitware.com> To: eflanigan00 at hotmail.com> CC: cmake at cmake.org> Subject: Re: [CMake] CMAKE/CTEST input test file> > Edward Flanigan wrote:> > > > > > > Date: Wed, 30 Jul 2008 17:04:03 -0400> > > From: bill.hoffman at kitware.com> > > To: eflanigan00 at hotmail.com> > > CC: cmake at cmake.org> > > Subject: Re: [CMake] CMAKE/CTEST input test file> > >> > > Edward Flanigan wrote:> > > >> > > > Using CTest, is there any way to specify what tests I want to run > > in a file?> > > > There is the option for -I where you have to specify the test number.> > > > I want to specify the test name (not the number):> > > >> > > > TestA> > > > TestB> > > > TestD> > > >> > > > use that file as an input to CTEST and run only the tests that were> > > > named in that file.> > > >> > > > Using numbers can lead to problems, what if more tests are added and> > > > changed the numbers of existing tests?> > > > All scripts using those numbers would have to be modified.> > > >> > >> > > ctest -R> > >> > > -Bill> > > > I don't know how to make -R accept a file as an input?> > I have over 100 tests. I want to classify different tests with different > > runs of cmake.> > Say 50 test name stored in file "test1to50" the other tests stored in > > "tests51to100"> > Each file contains the names of 50 different tests.> > I still want flexibility to use test names (instead of numbers) because > > if a developer adds a new test it may change the numbering system of > > existing tests.> > > > Right, ctest -RTest[A-D] The -R is a regular expression. Not quite > what you want, but should do the job if you name your tests with some > sort of convention.> > -Bill> > -- > Bill Hoffman> Kitware, Inc.> 28 Corporate Drive> Clifton Park, NY 12065> bill.hoffman at kitware.com> http://www.kitware.com> 518-371-3971 (phone and fax)
 
-R Test will run all my tests, In the example I wanted to omit C
 
This is a small example with hundreds of tests, it is very tedious to use the -R option.
Also maintaining -R arguments is very error-prone when dealing with a large number of tests.
I was hoping for an easy way to specify tests directly by their name through file input ...
Anyway I might just write a script that converts names into numbers by parsing the output of ctest -N .
Either that or write a script that generates ctest config files that use an abundance of -R calls for each test
 
 
Thanks for your help Bill.
 
 
 
_________________________________________________________________
Time for vacation? WIN what you need- enter now!
http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080730/1d5afbe6/attachment.htm>


More information about the CMake mailing list