<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif" size="-1">Hi,<br>
<br>
I am trying to compare the computation times of two different
approaches within ITK, using CMake to script the tests. The starting
and ending times are listed in the LastTest.log, so I was planning to
use these to record how long each test takes. Each test could take a
long time (~250minutes). When running these tests I am receiving
"Timeout" messages for tests that take longer than 25 minutes. <b><br>
<br>
Is there a way to increase the timeout limit? If not, is there another
way to record how long a test takes?</b><br>
<br>
My computer details are below:<br>
</font>
<ul>
<li><font face="Helvetica, Arial, sans-serif" size="-1">Operating
System=Windows XP SP2</font></li>
<li><font face="Helvetica, Arial, sans-serif" size="-1">CMake=CMake
2.4.2</font></li>
<li><font face="Helvetica, Arial, sans-serif" size="-1">Compiler=Microsoft.NET
2003 (7.1.3088)</font></li>
<li><font face="Helvetica, Arial, sans-serif" size="-1">ITK=InsightToolkit-2.8.1</font></li>
</ul>
<font face="Helvetica, Arial, sans-serif"><br>
<small>My CMake script is below:<br>
<br>
<font color="#666666" face="Courier New, Courier, monospace">#Set the
test drivers<br>
SET(SOURCE_TEST_DRIVER
${EXECUTABLE_OUTPUT_PATH}/MaskedSpatialObjectToImageTestDriver)<br>
<br>
#Add includes<br>
INCLUDE_DIRECTORIES (<br>
${SOURCE_PATH}<br>
${EXAMPLES_PATH}<br>
${TESTING_PATH}<br>
)<br>
<br>
#Set source test files<br>
SET(TEST_FILE_SOURCES<br>
itkMaskedSpatialObjectToImageFilterTests.cxx<br>
)<br>
<br>
#Add source test driver exe<br>
ADD_EXECUTABLE(MaskedSpatialObjectToImageTestDriver<br>
MaskedSpatialObjectToImageTestDriver.cxx
${TEST_FILE_SOURCES})<br>
TARGET_LINK_LIBRARIES(MaskedSpatialObjectToImageTestDriver
${ITK_LIBRARIES})<br>
<br>
#Add some tests<br>
SET(NUMBER_OF_RUNS 5)<br>
<br>
FOREACH(RUN_COUNT RANGE 1 ${NUMBER_OF_RUNS})<br>
<br>
ADD_TEST(MaskedSpatialObject_Real1_${RUN_COUNT}<br>
${SOURCE_TEST_DRIVER}<br>
itkMaskedSpatialObjectToImageFilterTest<br>
${IMAGES_PATH}/Real1.mhd<br>
${TESTING_OUTPUT_PATH}/Real1_IMAGE_MASKED.mhd<br>
512 512 404 #Size<br>
0.414063 0.414063 0.400024 #Spacing<br>
8.0 #MaskResampleFactor<br>
2 #MaskDilateSize<br>
)<br>
<br>
ADD_TEST(SpatialObject_Real1_${RUN_COUNT}<br>
${SOURCE_TEST_DRIVER}<br>
itkSpatialObjectToImageFilterTest<br>
${IMAGES_PATH}/Real1.mhd<br>
${TESTING_OUTPUT_PATH}/Real1_IMAGE_NORM.mhd<br>
512 512 404 #Size<br>
0.414063 0.414063 0.400024 #Spacing<br>
8.0 #MaskResampleFactor<br>
2 #MaskDilateSize<br>
)<br>
<br>
ENDFOREACH(RUN_COUNT)<br>
</font><br>
I can only find the <font face="Courier New, Courier, monospace">DART_TESTING_TIMEOUT:STRING=1500</font>
variable in my <font face="Courier New, Courier, monospace">CMakeCache.txt</font>.<br>
<br>
Any help would be appreciated!<br>
<br>
Cheers<br>
<br>
Dan Mueller<br>
<a class="moz-txt-link-abbreviated" href="mailto:d.mueller@qut.edu.au">d.mueller@qut.edu.au</a></small><br>
</font>
</body>
</html>