<div class="gmail_quote">On Tue, Dec 28, 2010 at 6:00 AM, girish hilage <span dir="ltr">&lt;<a href="mailto:girish_hilage@yahoo.com">girish_hilage@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top"><div>Hi,<br><br>   Thanks for your reply.<br>   I have now 2 different files CTestConfig.cmake and script.cmake<br>   I am giving the command :<br>
<br>   ctest -S script.cmake -VV<br><br>   my script.cmake has following lines in it (skipped initial lines) :<br>..........<br>..........<br>ctest_start(Nightly)<br>ctest_update()<br>ctest_configure()<br>ctest_build()<br>
ctest_test()<br>ctest_coverage()<br>ctest_submit()<br><br>   Now, the issues are :<br><br>   1. it is not submitting under &quot;Nightly&quot; section on CDASH but under &quot;Experimental&quot; section.<br>       I even tried enclosing word &#39;Nightly&#39; inside double quotes [ctest_start(&quot;Nightly&quot;)], but thats also not working.<br>
<br>   2. if I give :<br>      ctest_submit(FILES
 &lt;path_to_my_customized_Report.xml_file&gt;)<br><br>      instead of ctest_submit(), it gives me error :<br><br>      CMake Error at script.cmake:37 (ctest_submit):<br>        ctest_submit called with incorrect number of arguments.  Extra argument is:<br>
        FILES.<br><br>   How can I submit under &quot;Nightly&quot; section on CDASH and how do I submit my customized Report.xml test result file?<br><br>Regards,<br>Girish </div>
<div><br><br>--- On <b>Mon, 12/27/10, David Cole <i>&lt;<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>&gt;</i></b> wrote:<br></div>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;"><br>From: David Cole &lt;<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>&gt;<br>Subject: Re: [CMake] ctest_submit() error<br>
To: &quot;girish hilage&quot; &lt;<a href="mailto:girish_hilage@yahoo.com" target="_blank">girish_hilage@yahoo.com</a>&gt;<br>Cc: <a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a><br>Date: Monday, December 27, 2010, 1:55 PM<div>
<div></div><div class="h5"><br><br>
<div>On Mon, Dec 27, 2010 at 8:39 AM, girish hilage <span dir="ltr">&lt;<a href="http://us.mc576.mail.yahoo.com/mc/compose?to=girish_hilage@yahoo.com" rel="nofollow" target="_blank">girish_hilage@yahoo.com</a>&gt;</span> wrote:<br>

<div>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top">
<div>Hi,<br><br>I am a newbie to cmake and cdash.</div>
<div>I am trying to submit my customized report to CDASH using ctest_submit(FILES &lt;path to report file&gt;) but getting following errors.<br><br>- if I give it in CTestConfig.cmake and give &quot;cmake .&quot; then I am getting below error :<br>
<br>CMake Error at CTestConfig.cmake:8 (ctest_submit):<br>  Unknown CMake command &quot;ctest_submit&quot;.<br>Call Stack (most recent call first):<br>  /usr/share/cmake-2.6/Modules/CTest.cmake:50 (INCLUDE)<br>  CMakeLists.txt:117 (INCLUDE)<br>
<br>- if I give it in CMakeLists.txt and give &quot;cmake .&quot; then I am getting below error :<br><br>CMake Error at CMakeLists.txt:121 (ctest_submit):<br>  Unknown CMake command &quot;ctest_submit&quot;.<br><br>So want to ask :<br>
1. Am I using ctest_submit() properly for the purpose of submitting the customized report or is there any other way to do this?<br>2. In which file should I give ctest_submit() (CTestConfig.cmake or
 CMakeLists.txt)?<br></div></td></tr></tbody></table></blockquote>
<div><br></div>
<div><br></div>
<div>Neither. Calls to ctest_submit belong in &quot;ctest -S&quot; scripts that drive dashboard builds and submissions. CMake itself does not implement any of the &quot;ctest_*&quot; commands, so you can only call them from ctest scripts.</div>

<div><br></div>
<div>HTH,</div>
<div>David</div>
<div><br></div>
<div> </div>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top">
<div><br>Regards,<br>Girish</div></td></tr></tbody></table><br><br>_______________________________________________<br>Powered by <a href="http://www.kitware.com/" rel="nofollow" target="_blank">www.kitware.com</a><br><br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="nofollow" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.cmake.org/mailman/listinfo/cmake" rel="nofollow" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div></div>
</div></blockquote></td></tr></tbody></table><br>







      </blockquote></div><br>CTestConfig.cmake should be at the root of your source tree, right next to CMakeLists.txt. Is it?<br><br>What version of ctest are you running? (i.e. what is the output of &quot;ctest --version&quot;?)<br>
<br>ctest_submit did not handle the FILES argument until version 2.8. (From your initial output it looks like you&#39;re using ctest 2.6.x)<br><br>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?<br>
<br><br>