[prev in list] [next in list] [prev in thread] [next in thread]
List: vtk-developers
Subject: Re: [vtk-developers] TestSetGet timeouts on RogueResearch machines
From: Jean-Christophe Fillion-Robin <jchris.fillionr () kitware ! com>
Date: 2013-02-22 5:27:03
Message-ID: CANLz8R6KfnW+=iFhfDfdZSPreo2tMXyH=i=-Kbf1fMiybf2KLg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi Bill,
Instead of MSVC, you could probably use "CMAKE_CONFIGURATION_TYPES".
Otherwise, I guess the problem would also appear on Generator supporting
multiple config.
if(CMAKE_CONFIGURATION_TYPES)
add_test(NAME ${vtk-module}Tcl-${test}
COMMAND ${TCL_TCLSH}
${CMAKE_CURRENT_SOURCE_DIR}/${test}.tcl
-A ${VTK_TCL_HOME}/$<CONFIGURATION>)
else()
add_test(NAME ${vtk-module}Tcl-${test}
COMMAND ${TCL_TCLSH}
${CMAKE_CURRENT_SOURCE_DIR}/${test}.tcl
-A ${VTK_TCL_HOME})
endif()
Hth
Jc
On Fri, Feb 22, 2013 at 12:20 AM, Bill Lorensen <bill.lorensen@gmail.com>wrote:
> JC, I just found that myself. Thanks.
>
> I use something like this:
> if (MSVC)
> add_test(NAME ${vtk-module}Tcl-${test}
> COMMAND ${TCL_TCLSH}
> ${CMAKE_CURRENT_SOURCE_DIR}/${test}.tcl
> -A ${VTK_TCL_HOME}/$<CONFIGURATION>)
> else()
> add_test(NAME ${vtk-module}Tcl-${test}
> COMMAND ${TCL_TCLSH}
> ${CMAKE_CURRENT_SOURCE_DIR}/${test}.tcl
> -A ${VTK_TCL_HOME})
> endif()
>
>
> On Fri, Feb 22, 2013 at 12:16 AM, Jean-Christophe Fillion-Robin <
> jchris.fillionr@kitware.com> wrote:
>
>> Hi Bill,
>>
>> You could use $<CONFIGURATION>.
>> See http://www.cmake.org/cmake/help/v2.8.10/cmake.html#command:add_test
>>
>> Hth
>> Jc
>>
>>
>> On Thu, Feb 21, 2013 at 11:50 PM, Bill Lorensen <bill.lorensen@gmail.com>wrote:
>>
>>> I had to revert my gerrit patch that used tclsh. It failed on Windows
>>> because it needs a proper Wrapping/Tcl dir to add to auto_path. This is
>>> done with the -A arg on the add_test command.
>>> I thought I could use
>>> ${VTK_TCL_HOME} but that does not include the Release or RelWithDebinfo
>>> or Debug subdir that the packages reside in on Windows.
>>>
>>> I'm not sure how to get cmake to generate a proper path that has the cfg
>>> dir.
>>>
>>> I tried:
>>> ${VTK_TCL_HOME}/${CMAKE_CFG_INTDIR} but on VS 2010 is generates:
>>> ${VTK_TCL_HOME}/${Configuration}
>>>
>>> I could list explicitly all cfg's but that does not seem desirable.
>>>
>>>
>>> On Thu, Feb 21, 2013 at 4:54 PM, David Gobbi <david.gobbi@gmail.com>wrote:
>>>
>>>> On Thu, Feb 21, 2013 at 2:36 PM, Sean McBride <sean@rogue-research.com>
>>>> wrote:
>>>> > On Thu, 21 Feb 2013 14:01:17 -0700, David Gobbi said:
>>>> >
>>>> >>I'm not sure if this will help, but I ran "ctest -V -R TestSetGet"
>>>> >>from crontab on my own machine (OS X 10.6) and it took
>>>> >>15 seconds, exactly the same as when I run it from the shell.
>>>> >>It produced identical output, too.
>>>> >
>>>> > Could you try with launchd instead of cron?
>>>>
>>>> Okay, with launchd it takes several minutes at least (it's still
>>>> running).
>>>> Attaching gdb tells me Tk_DrawChars() is where it spending its time.
>>>> And even though I'm running ctest with the "-V" option, I'm not getting
>>>> any output. So, yeah, I think that vtk is trying to write to the tk
>>>> console
>>>> instead of writing to stdout. So Bill's tclsh patch will hopefully fix
>>>> that.
>>>>
>>>> - David
>>>>
>>>
>>>
>>>
>>> --
>>> Unpaid intern in BillsBasement at noware dot com
>>>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>>
>>>
>>>
>>
>>
>> --
>> +1 919 869 8849
>>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
--
+1 919 869 8849
[Attachment #5 (text/html)]
<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Hi \
Bill, </div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div \
style="font-family:arial,sans-serif;font-size:12.727272033691406px">
Instead of MSVC, you could probably use "CMAKE_CONFIGURATION_TYPES". \
Otherwise, I guess the problem would also appear on Generator supporting multiple \
config.</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">if(CMAKE_CONFIGURATION_TYPES)</div><div \
style="font-family:arial,sans-serif;font-size:12.727272033691406px"> add_test(NAME \
${vtk-module}Tcl-${test}</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> \
COMMAND ${TCL_TCLSH}</div><div \
style="font-family:arial,sans-serif;font-size:12.727272033691406px"> \
${CMAKE_CURRENT_SOURCE_DIR}/${test}.tcl</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><span \
style="white-space:pre-wrap"> </span>-A \
${VTK_TCL_HOME}/$<CONFIGURATION>)</div><div><div><font face="arial, \
sans-serif">else()</font></div>
<div><font face="arial, sans-serif"> add_test(NAME \
${vtk-module}Tcl-${test}</font></div><div><font face="arial, sans-serif"> \
COMMAND ${TCL_TCLSH}</font></div><div><font face="arial, sans-serif"><span class="" \
style="white-space:pre"> </span>${CMAKE_CURRENT_SOURCE_DIR}/${test}.tcl</font></div>
<div><font face="arial, sans-serif"><span class="" \
style="white-space:pre"> </span>-A ${VTK_TCL_HOME})</font></div><div><font \
face="arial, sans-serif"> endif()</font></div></div><div><font face="arial, \
sans-serif"><br> </font></div>
<div style><font face="arial, sans-serif">Hth</font></div><div style><font \
face="arial, sans-serif">Jc</font></div></div><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Fri, Feb 22, 2013 at 12:20 AM, Bill Lorensen <span \
dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" \
target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">JC, I just found that myself. Thanks.<div><br></div><div>I \
use something like this:</div><div><div> if (MSVC)</div><div>
add_test(NAME ${vtk-module}Tcl-${test}</div><div> COMMAND \
${TCL_TCLSH}</div><div> ${CMAKE_CURRENT_SOURCE_DIR}/${test}.tcl</div> \
<div><span style="white-space:pre-wrap"> </span>-A \
${VTK_TCL_HOME}/$<CONFIGURATION>)</div><div> else()</div><div> \
add_test(NAME ${vtk-module}Tcl-${test}</div><div> COMMAND \
${TCL_TCLSH}</div> <div><span \
style="white-space:pre-wrap"> </span>${CMAKE_CURRENT_SOURCE_DIR}/${test}.tcl</div><div><span \
style="white-space:pre-wrap"> </span>-A ${VTK_TCL_HOME})</div><div> \
endif()</div><div><div class="h5"> <div><br></div><br><div class="gmail_quote">On \
Fri, Feb 22, 2013 at 12:16 AM, Jean-Christophe Fillion-Robin <span dir="ltr"><<a \
href="mailto:jchris.fillionr@kitware.com" \
target="_blank">jchris.fillionr@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi Bill, <div><br></div><div>You could use \
$<CONFIGURATION>.</div><div>See <a \
href="http://www.cmake.org/cmake/help/v2.8.10/cmake.html#command:add_test" \
target="_blank">http://www.cmake.org/cmake/help/v2.8.10/cmake.html#command:add_test</a></div>
<div><br></div><div>Hth</div><div>Jc</div></div><div class="gmail_extra"><br><br><div \
class="gmail_quote"><div><div>On Thu, Feb 21, 2013 at 11:50 PM, Bill Lorensen <span \
dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" \
target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div><div>I had to revert my gerrit patch that used \
tclsh. It failed on Windows because it needs a proper Wrapping/Tcl dir to add to \
auto_path. This is done with the -A arg on the add_test command.<div>
I thought I could use<div>${VTK_TCL_HOME} but that does not include the Release or \
RelWithDebinfo or Debug subdir that the packages reside in on Windows.</div> \
<div><br></div><div>I'm not sure how to get cmake to generate a proper path that \
has the cfg dir.</div><div><br></div><div>I \
tried:</div><div>${VTK_TCL_HOME}/${CMAKE_CFG_INTDIR} but on VS 2010 is \
generates:</div><div>
${VTK_TCL_HOME}/${Configuration}<br><div><div><br></div><div>I could list explicitly \
all cfg's but that does not seem \
desirable.</div><div><br></div><div><div><br><div class="gmail_quote">On Thu, Feb 21, \
2013 at 4:54 PM, David Gobbi <span dir="ltr"><<a \
href="mailto:david.gobbi@gmail.com" \
target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div>On Thu, Feb 21, 2013 at 2:36 PM, Sean McBride <<a \
href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>> \
wrote:<br>
> On Thu, 21 Feb 2013 14:01:17 -0700, David Gobbi said:<br>
><br>
>>I'm not sure if this will help, but I ran "ctest -V -R \
TestSetGet"<br> >>from crontab on my own machine (OS X 10.6) and it \
took<br> >>15 seconds, exactly the same as when I run it from the shell.<br>
>>It produced identical output, too.<br>
><br>
> Could you try with launchd instead of cron?<br>
<br>
</div>Okay, with launchd it takes several minutes at least (it's still \
running).<br> Attaching gdb tells me Tk_DrawChars() is where it spending its \
time.<br> And even though I'm running ctest with the "-V" option, \
I'm not getting<br> any output. So, yeah, I think that vtk is trying to write to \
the tk console<br> instead of writing to stdout. So Bill's tclsh patch will \
hopefully fix that.<br> <span><font color="#888888"><br>
- David<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div><div>-- \
<br>Unpaid intern in BillsBasement at noware dot com<br> \
</div></div></div></div></div> \
<br></div></div><div>_______________________________________________<br> Powered by \
<a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br> <br>
Visit other Kitware open-source projects at <a \
href="http://www.kitware.com/opensource/opensource.html" \
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" \
target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br> <br>
<br></div></blockquote></div><span><font color="#888888"><br><br \
clear="all"><div><br></div>-- <br><a href="tel:%2B1%20919%20869%208849" \
value="+19198698849" target="_blank">+1 919 869 8849</a><br> </font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in \
BillsBasement at noware dot com<br> </div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>+1 919 869 8849<br>
</div>
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic