[CMake] problem: No test configuration file found!
David Cole
david.cole at kitware.com
Wed Jun 20 18:15:43 EDT 2012
Put the "include(CTest)" line in your top level CMakeLists.txt file.
Do a full clean re-configure (remove the "build" directory, make a new
empty "build" directory and run CMake again).
If it still happens after that, we need more details about your project.
You should be able to build "Experimental" (or just run ctest) after a
configure of a project that includes CTest, and uses add_test to add tests
to the project.
HTH,
David
On Wed, Jun 20, 2012 at 2:43 PM, Robert Ramey <ramey at rrsd.com> wrote:
> I received the adive:
>
> include(CTest)
> instead of:
> enable_testing()
> Including CTest.cmake will automatically enable_testing(), but it also
> configures the "test configuration file" it's complaining about...
>
> and was rewarded with a working VS 9 project. The test_subtract project
> built - as it did before. I then "built" the "Experimental" project which
> generated the following output on my VS output window.
>
> 1>------ Build started: Project: Experimental, Configuration: Debug
> 1>Win32 ------ Cannot find file: C:/Projects/Boost
> 1>Projects/safe_numerics/build/tests/DartConfiguration.tcl
> 1> Site:
> 1> Build name:
> 1>Create new tag: 20120619-2150 - Experimental Configure project Cannot
> 1>find ConfigureCommand key in the DartConfiguration.tcl Cannot find
> 1>file: C:/Projects/Boost
> 1>Projects/safe_numerics/build/tests/DartConfiguration.tcl
> 1>Build project
> 1>Cannot find MakeCommand key in the DartConfiguration.tcl Cannot find
> 1>file: C:/Projects/Boost
> 1>Projects/safe_numerics/build/tests/DartConfiguration.tcl
> 1>Test project C:/Projects/Boost Projects/safe_numerics/build/tests
> 1> Start 1: test_subtract
> 1>1/1 Test #1: test_subtract ....................***Exception: SegFault
> 1>0.42 sec 0% tests passed, 1 tests failed out of 1 Total Test time
> 1>(real) = 0.52 sec The following tests FAILED:
> 1> 1 - test_subtract (SEGFAULT)
> 1>Cannot find file: C:/Projects/Boost
> 1>Projects/safe_numerics/build/tests/DartConfiguration.tcl
> 1>Performing coverage
> 1>^CTerminate batch job (Y/N)?
> 1>Build log was saved at "file://c:\Projects\Boost
> Projects\safe_numerics\build\tests\Experimental.dir\Debug\BuildLog.htm"
> 1>Experimental - 0 error(s), 0 warning(s)
> 1>
> 1>
> 1>The build has been canceled at the user's request
> that last command "Performing Coverage" seemed to hang this system so I
> canceled the build after a few minutes.
> The message:
> 1>Cannot find file: C:/Projects/Boost
> 1>Projects/safe_numerics/build/tests/DartConfiguration.tcl
>
> Note that I found a new file in my project:
> C:/Projects/Boost Projects/safe_numerics/build/DartConfiguration.tcl
> That is, directly in my build directory rather than in "tests"
> subdirectory.
> OK I moved this down to the "tests" directory and tried again. This looks
> more promising.
> Now when I try to build "Experimental" Project I get:
>
> 1>------ Build started: Project: Experimental, Configuration: Debug
> Win32 ------
> 1> Site: RRSD01
> 1> Build name: Win32-vs9
> 1>Create new tag: 20120619-2225 - Experimental Configure project
> 1> Each . represents 1024 bytes of output
> 1> . Size of output: 0K
> 1>Build project
> 1> Each symbol represents 1024 bytes of output.
> 1> '!' represents an error and '*' a warning.
> 1> . Size of output: 0K
> 1> 0 Compiler errors
> 1> 0 Compiler warnings
> 1>Test project C:/Projects/Boost Projects/safe_numerics/build No tests
> 1>were found!!!
> 1>Performing coverage
> 1> Cannot find any coverage files. Ignoring Coverage request.
> 1>Submit files (using http)
> 1> Using HTTP submit method
> 1> Drop site:http://
> 1> Submit failed, waiting 5 seconds...
> 1> Retry submission: Attempt 1 of 3
> 1> Submit failed, waiting 5 seconds...
> 1> Retry submission: Attempt 2 of 3
> 1> Submit failed, waiting 5 seconds...
> 1> Retry submission: Attempt 3 of 3
> 1> Error when uploading file: C:/Projects/Boost
> Projects/safe_numerics/build/Testing/20120619-2225/Build.xml
> 1> Error message was: Empty reply from server
> 1> Problems when submitting via HTTP
> 1>Errors while running CTest
> 1>Project : error PRJ0019: A tool returned an error code from Build log
> 1>was saved at "file://c:\Projects\Boost
> Projects\safe_numerics\build\tests\Experimental.dir\Debug\BuildLog.htm"
> 1>Experimental - 1 error(s), 0 warning(s)
> ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
> ?
> still it's not what I expect to see.
> Is there some really obvious thing I've over looking here?
>
> Robert Ramey
>
>
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120620/9d50b60f/attachment.htm>
More information about the CMake
mailing list