<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><BR>&nbsp;<BR>

<HR id=stopSpelling>
<BR>
&gt; Date: Wed, 30 Jul 2008 17:29:15 -0400<BR>&gt; From: bill.hoffman@kitware.com<BR>&gt; To: eflanigan00@hotmail.com<BR>&gt; CC: cmake@cmake.org<BR>&gt; Subject: Re: [CMake] CMAKE/CTEST input test file<BR>&gt; <BR>&gt; Edward Flanigan wrote:<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; &gt; Date: Wed, 30 Jul 2008 17:04:03 -0400<BR>&gt; &gt; &gt; From: bill.hoffman@kitware.com<BR>&gt; &gt; &gt; To: eflanigan00@hotmail.com<BR>&gt; &gt; &gt; CC: cmake@cmake.org<BR>&gt; &gt; &gt; Subject: Re: [CMake] CMAKE/CTEST input test file<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Edward Flanigan wrote:<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; Using CTest, is there any way to specify what tests I want to run <BR>&gt; &gt; in a file?<BR>&gt; &gt; &gt; &gt; There is the option for -I where you have to specify the test number.<BR>&gt; &gt; &gt; &gt; I want to specify the test name (not the number):<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; TestA<BR>&gt; &gt; &gt; &gt; TestB<BR>&gt; &gt; &gt; &gt; TestD<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; use that file as an input to CTEST and run only the tests that were<BR>&gt; &gt; &gt; &gt; named in that file.<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; Using numbers can lead to problems, what if more tests are added and<BR>&gt; &gt; &gt; &gt; changed the numbers of existing tests?<BR>&gt; &gt; &gt; &gt; All scripts using those numbers would have to be modified.<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; ctest -R<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; -Bill<BR>&gt; &gt; <BR>&gt; &gt; I don't know how to make -R accept a file as an input?<BR>&gt; &gt; I have over 100 tests. I want to classify different tests with different <BR>&gt; &gt; runs of cmake.<BR>&gt; &gt; Say 50 test name stored in file "test1to50" the other tests stored in <BR>&gt; &gt; "tests51to100"<BR>&gt; &gt; Each file contains the names of 50 different tests.<BR>&gt; &gt; I still want flexibility to use test names (instead of numbers) because <BR>&gt; &gt; if a developer adds a new test it may change the numbering system of <BR>&gt; &gt; existing tests.<BR>&gt; &gt; <BR>&gt; <BR>&gt; Right, ctest -RTest[A-D] The -R is a regular expression. Not quite <BR>&gt; what you want, but should do the job if you name your tests with some <BR>&gt; sort of convention.<BR>&gt; <BR>&gt; -Bill<BR>&gt; <BR>&gt; -- <BR>&gt; Bill Hoffman<BR>&gt; Kitware, Inc.<BR>&gt; 28 Corporate Drive<BR>&gt; Clifton Park, NY 12065<BR>&gt; bill.hoffman@kitware.com<BR>&gt; http://www.kitware.com<BR>&gt; 518-371-3971 (phone and fax)<BR>
&nbsp;<BR>
-R Test will run all my tests, In the example&nbsp;I wanted to omit C<BR>
&nbsp;<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&nbsp;...<BR>
Anyway I might just&nbsp;write&nbsp;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>
&nbsp;<BR>
&nbsp;<BR>
Thanks for your help Bill.<BR>
<BR>&nbsp;<BR>
&nbsp;<BR>
&nbsp;<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>