[Bug 836] New: Test timeout ignored by ctest

http://bugs.orocos.org/show_bug.cgi?id=836

Summary: Test timeout ignored by ctest
Product: Toolchain
Version: 2.3.0
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P3
Component: RTT
AssignedTo: orocos-dev [..] ...
ReportedBy: kiwi [dot] net [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

On Linux and Mac OS X, toolchain uses a timeout of 9.99988e+06 seconds, and not
the default 1500 seconds. The DartConfiguration.tcl file is generated in
/path/to/rtt/build, but it is required to be in /path/to/rtt/build/tests.

UpdateCTestConfiguration  from
:/opt/sw/orocos/toolchain-next/build/rtt/tests/DartConfiguration.tcl
UpdateCTestConfiguration  from
:/opt/sw/orocos/toolchain-next/build/rtt/tests/DartConfiguration.tcl
Test project /opt/sw/orocos/toolchain-next/build/rtt/tests
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
test 1
      Start  1: main-test
 
1: Test command: /opt/sw/orocos/toolchain-next/build/rtt/tests/main-test
1: Test timeout computed to be: 9.99988e+06
 1/39 Test  #1: main-test ........................   Passed    0.01 sec

Adding a link in tests back to ../DartConfiguration.tcl and you can see the
configuration file being used.

UpdateCTestConfiguration  from
:/opt/sw/orocos/toolchain-next/build/rtt/tests/DartConfiguration.tcl
Parse Config
file:/opt/sw/orocos/toolchain-next/build/rtt/tests/DartConfiguration.tcl
UpdateCTestConfiguration  from
:/opt/sw/orocos/toolchain-next/build/rtt/DartConfiguration.tcl
Parse Config file:/opt/sw/orocos/toolchain-next/build/rtt/DartConfiguration.tcl
Test project /opt/sw/orocos/toolchain-next/build/rtt
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
test 1
      Start  1: main-test
 
1: Test command: /opt/sw/orocos/toolchain-next/build/rtt/tests/main-test
1: Test timeout computed to be: 1500
 1/39 Test  #1: main-test ........................   Passed    0.01 sec

This is as we run "make check" from within the tests dir. Changing the
WORKING_DIRECTORY of the "make check" command to CMAKE_BINARY_DIR fixes the
problem, but requires further fixes to the CORBA setup programs, etc.

How do we want to fix this?

[Bug 836] Test timeout ignored by ctest

http://bugs.orocos.org/show_bug.cgi?id=836

S Roderick <kiwi [dot] net [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED

--- Comment #2 from S Roderick <kiwi [dot] net [..] ...> 2011-03-28 13:25:17 CEST ---
Fixed by d56f12a6

[Bug 836] Test timeout ignored by ctest

http://bugs.orocos.org/show_bug.cgi?id=836

--- Comment #1 from Peter Soetens <peter [..] ...> 2011-03-28 13:21:11 CEST ---
(In reply to comment #0)
> On Linux and Mac OS X, toolchain uses a timeout of 9.99988e+06 seconds, and not
> the default 1500 seconds. The DartConfiguration.tcl file is generated in
> /path/to/rtt/build, but it is required to be in /path/to/rtt/build/tests.
>
>

> 
> UpdateCTestConfiguration  from
> :/opt/sw/orocos/toolchain-next/build/rtt/tests/DartConfiguration.tcl
> UpdateCTestConfiguration  from
> :/opt/sw/orocos/toolchain-next/build/rtt/tests/DartConfiguration.tcl
> Test project /opt/sw/orocos/toolchain-next/build/rtt/tests
> Constructing a list of tests
> Done constructing a list of tests
> Checking test dependency graph...
> test 1
> Start  1: main-test
> 
> 1: Test command: /opt/sw/orocos/toolchain-next/build/rtt/tests/main-test
> 1: Test timeout computed to be: 9.99988e+06
> 1/39 Test  #1: main-test ........................   Passed    0.01 sec
> 

>
> Adding a link in tests back to ../DartConfiguration.tcl and you can see the
> configuration file being used.
>
>
> 
> UpdateCTestConfiguration  from
> :/opt/sw/orocos/toolchain-next/build/rtt/tests/DartConfiguration.tcl
> Parse Config
> file:/opt/sw/orocos/toolchain-next/build/rtt/tests/DartConfiguration.tcl
> UpdateCTestConfiguration  from
> :/opt/sw/orocos/toolchain-next/build/rtt/DartConfiguration.tcl
> Parse Config file:/opt/sw/orocos/toolchain-next/build/rtt/DartConfiguration.tcl
> Test project /opt/sw/orocos/toolchain-next/build/rtt
> Constructing a list of tests
> Done constructing a list of tests
> Checking test dependency graph...
> test 1
> Start  1: main-test
> 
> 1: Test command: /opt/sw/orocos/toolchain-next/build/rtt/tests/main-test
> 1: Test timeout computed to be: 1500
> 1/39 Test  #1: main-test ........................   Passed    0.01 sec
> 

>
> This is as we run "make check" from within the tests dir. Changing the
> WORKING_DIRECTORY of the "make check" command to CMAKE_BINARY_DIR fixes the
> problem, but requires further fixes to the CORBA setup programs, etc.
>
> How do we want to fix this?

Isn't this buf fixed by commit d56f12a6 ? I would try to stick to using tests/
as the working directory ?

Peter

[Bug 836] Test timeout ignored by ctest

http://bugs.orocos.org/show_bug.cgi?id=836

S Roderick <kiwi [dot] net [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Severity|enhancement |major