[CMake] tests running out of order on cmake

Michael Wild themiwi at gmail.com
Tue Jun 28 10:33:26 EDT 2011


If the tests depend on each other, you *must* tell CTest so, by setting
the DEPENDS property using the set_tests_properties() function.

Normally, running tests in arbitrary order is considered to be a
feature, helping you to not to introduce accidental dependencies.

Michael

On 06/28/2011 04:16 PM, j s wrote:
> Can someone please let me know how to get the Mac OS X version of
> cmake 2.8.4 to run the tests in the order in which they are added?
> For some bizarre reason they are running out of order:
> 
> Sample output (without actual test name).
>  1/85 Test #64: XXXXXXXXXXXXXXXX .............***Failed    0.01 sec
>       Start 63: XXXXXXXXXXXXXXXX
>  2/85 Test #63: XXXXXXXXXXXXXXXX..............   Passed    0.00 sec
>       Start 62: XXXXXXXXXXXXXXXX
>  3/85 Test #62: XXXXXXXXXXXXXXXX..............   Passed    0.00 sec
>       Start 61: XXXXXXXXXXXXXXXX
> 
> This is preventing from verifying my recent changes on the mac.  The
> Ubuntu linux version does not have this issue.
> 
> Juan
> 
> 
> On Sat, Jun 25, 2011 at 2:51 PM, j s <j.s4403 at gmail.com> wrote:
>> Unfortunately the problem came back.  I there a command line option to
>> fix this out of order execution feature.
>>
>> Juan
>>
>> On Sat, Jun 25, 2011 at 1:30 PM, j s <j.s4403 at gmail.com> wrote:
>>> I was able to update the cmake dmg from the website, and now my tests
>>> are running in the proper order.
>>>
>>> On Sat, Jun 25, 2011 at 1:23 PM, j s <j.s4403 at gmail.com> wrote:
>>>> How do I tell the macports version of cmake 2.8.1  on the mac to run
>>>> the tests in exactly the order they were originally specified?  I'm in
>>>> the process of updating macports right now to see if it goes back to
>>>> the sequential default in later versions?  man ctest reveals
>>>> --schedule-random, but no sequential option.
>>>>
>>>> Regards,
>>>>
>>>> Juan
>>>>
>>>
>>



More information about the CMake mailing list