[CMake] ctest_submit() error

David Cole david.cole at kitware.com
Tue Dec 28 06:29:49 EST 2010


On Tue, Dec 28, 2010 at 6:00 AM, girish hilage <girish_hilage at yahoo.com>wrote:

> Hi,
>
>    Thanks for your reply.
>    I have now 2 different files CTestConfig.cmake and script.cmake
>    I am giving the command :
>
>    ctest -S script.cmake -VV
>
>    my script.cmake has following lines in it (skipped initial lines) :
> ..........
> ..........
> ctest_start(Nightly)
> ctest_update()
> ctest_configure()
> ctest_build()
> ctest_test()
> ctest_coverage()
> ctest_submit()
>
>    Now, the issues are :
>
>    1. it is not submitting under "Nightly" section on CDASH but under
> "Experimental" section.
>        I even tried enclosing word 'Nightly' inside double quotes
> [ctest_start("Nightly")], but thats also not working.
>
>    2. if I give :
>       ctest_submit(FILES <path_to_my_customized_Report.xml_file>)
>
>       instead of ctest_submit(), it gives me error :
>
>       CMake Error at script.cmake:37 (ctest_submit):
>         ctest_submit called with incorrect number of arguments.  Extra
> argument is:
>         FILES.
>
>    How can I submit under "Nightly" section on CDASH and how do I submit my
> customized Report.xml test result file?
>
> Regards,
> Girish
>
>
> --- On *Mon, 12/27/10, David Cole <david.cole at kitware.com>* wrote:
>
>
> From: David Cole <david.cole at kitware.com>
> Subject: Re: [CMake] ctest_submit() error
> To: "girish hilage" <girish_hilage at yahoo.com>
> Cc: cmake at cmake.org
> Date: Monday, December 27, 2010, 1:55 PM
>
>
> On Mon, Dec 27, 2010 at 8:39 AM, girish hilage <girish_hilage at yahoo.com<http://us.mc576.mail.yahoo.com/mc/compose?to=girish_hilage@yahoo.com>
> > wrote:
>
>   Hi,
>
> I am a newbie to cmake and cdash.
> I am trying to submit my customized report to CDASH using
> ctest_submit(FILES <path to report file>) but getting following errors.
>
> - if I give it in CTestConfig.cmake and give "cmake ." then I am getting
> below error :
>
> CMake Error at CTestConfig.cmake:8 (ctest_submit):
>   Unknown CMake command "ctest_submit".
> Call Stack (most recent call first):
>   /usr/share/cmake-2.6/Modules/CTest.cmake:50 (INCLUDE)
>   CMakeLists.txt:117 (INCLUDE)
>
> - if I give it in CMakeLists.txt and give "cmake ." then I am getting below
> error :
>
> CMake Error at CMakeLists.txt:121 (ctest_submit):
>   Unknown CMake command "ctest_submit".
>
> So want to ask :
> 1. Am I using ctest_submit() properly for the purpose of submitting the
> customized report or is there any other way to do this?
> 2. In which file should I give ctest_submit() (CTestConfig.cmake or
> CMakeLists.txt)?
>
>
>
> Neither. Calls to ctest_submit belong in "ctest -S" scripts that drive
> dashboard builds and submissions. CMake itself does not implement any of the
> "ctest_*" commands, so you can only call them from ctest scripts.
>
> HTH,
> David
>
>
>
>
> Regards,
> Girish
>
>
> _______________________________________________
> 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
>
>
>
>
CTestConfig.cmake should be at the root of your source tree, right next to
CMakeLists.txt. Is it?

What version of ctest are you running? (i.e. what is the output of "ctest
--version"?)

ctest_submit did not handle the FILES argument until version 2.8. (From your
initial output it looks like you're using ctest 2.6.x)

Do you have a nightly start time defined in CTestConfig.cmake and does it
exactly match the start time set for the project in CDash?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101228/d21943f9/attachment.htm>


More information about the CMake mailing list