[CMake] Combinatorial validation with cmake

Alan W. Irwin irwin at beluga.phys.uvic.ca
Mon Nov 4 16:12:11 EST 2013


On 2013-11-04 10:59-0000 PULVERAIL, Sebastien wrote:

> Hi there,
>
> I have been using cmake for a while now, but just for compilation.. Now, I am trying to use ctest/cdash for doing my tools validation.
>
> I need to do a combinatorial validation running my tests multiple times and in a random order. So I found the "--schedule-option" to run tests in a random order.. But I don't know how to specify ctest to run a test multiple times.
>
> If it is not possible, is there someone which tool I can use?
>
> Thanks for your help.
>
Hi Sébastien:

If what you want to do is run ctest (say) 1000 times,
then under bash on Linux or bash.exe on MSYS/Windows, the following
should work:

ncount=1000
for count in $(seq $ncount); do
   echo "executing ctest for count = $count out of $ncount"
   ctest
done

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list