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