<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi,<BR><BR>&nbsp;&nbsp; Thanks for your reply.<BR></DIV>
<DIV>&nbsp;&nbsp; Yes,&nbsp;CTestConfig.cmake&nbsp;is at the source tree root.</DIV>
<DIV>&nbsp;&nbsp;&nbsp;I have now upgraded my cmake and now&nbsp;ctest_submit() is accepting FILES argument.<BR><BR>&nbsp;&nbsp; So I am now giving ctest_submit(FILES &lt;path_to_Test.xml&gt;)<BR>&nbsp;&nbsp; But it still gives me below error.<BR>&nbsp;&nbsp; "Error in read script: script.cmake"<BR><BR>&nbsp;&nbsp; and says "Submission successful". But CDASH dashboard does not show any build submitted.<BR></DIV>
<DIV>&nbsp;&nbsp; If I only give ctest_submit() with no arguments then it works fine.<BR>&nbsp;&nbsp; Format of my Test.xml is same as Test.xml generated if I only give ctest_submit().<BR>___________________________________________<BR>&nbsp;&nbsp; Another query is regarding time shown on the dashboard :<BR><BR>&nbsp;&nbsp; I can see below string on the dashboard main page :<BR>&nbsp;&nbsp; "No file changed as of Thursday, December 30 2010 00:01:00 IST"<BR><BR>&nbsp;&nbsp; I have given :<BR><BR>&nbsp;&nbsp; Nightly Start Time: 20:31:00 IST<BR><BR>&nbsp;&nbsp; in ADMINISTRATION--&gt;Project--&gt;Testing<BR><BR>&nbsp;&nbsp; If I change this time then I can see change in the timestamp shown on main dashboard page.<BR><BR>___________________________________________<BR>&nbsp;&nbsp; So, my queries are :<BR>&nbsp;&nbsp; 1. how do I make my customized report submission to dashboard?<BR>&nbsp;&nbsp; 2. what is the relation between these two timestamps (Nightly
 start time and timestamp shown on main dashboard page)?</DIV>
<DIV>&nbsp;&nbsp; 3. I have given&nbsp;nightly start time in this file&nbsp;as : 00:00:00 IST in CTestConfig.cmake file.</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;So, I should also give 00:00:00 IST in ADMINISTRATION--&gt;Project--&gt;Testing--&gt;Nightly Start Time ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,<BR>Girish <BR><BR>--- On <B>Tue, 12/28/10, David Cole <I>&lt;david.cole@kitware.com&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: David Cole &lt;david.cole@kitware.com&gt;<BR>Subject: Re: [CMake] ctest_submit() error<BR>To: "girish hilage" &lt;girish_hilage@yahoo.com&gt;<BR>Cc: cmake@cmake.org<BR>Date: Tuesday, December 28, 2010, 11:29 AM<BR><BR>
<DIV id=yiv1592175274>
<DIV class=yiv1592175274gmail_quote>On Tue, Dec 28, 2010 at 6:00 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 ymailto="mailto:girish_hilage@yahoo.com">girish_hilage@yahoo.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class=yiv1592175274gmail_quote>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>Hi,<BR><BR>&nbsp;&nbsp; Thanks for your reply.<BR>&nbsp;&nbsp; I have now 2 different files CTestConfig.cmake and script.cmake<BR>&nbsp;&nbsp; I am giving the command :<BR><BR>&nbsp;&nbsp; ctest -S script.cmake -VV<BR><BR>&nbsp;&nbsp; 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>&nbsp;&nbsp; Now, the issues are :<BR><BR>&nbsp;&nbsp; 1. it is not submitting under "Nightly" section on CDASH but under "Experimental" section.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I even tried enclosing word 'Nightly' inside double quotes [ctest_start("Nightly")], but thats also not working.<BR><BR>&nbsp;&nbsp; 2. if I give :<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ctest_submit(FILES &lt;path_to_my_customized_Report.xml_file&gt;)<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; instead of
 ctest_submit(), it gives me error :<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMake Error at script.cmake:37 (ctest_submit):<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ctest_submit called with incorrect number of arguments.&nbsp; Extra argument is:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FILES.<BR><BR>&nbsp;&nbsp; How can I submit under "Nightly" 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="http://us.mc576.mail.yahoo.com/mc/compose?to=david.cole@kitware.com" rel=nofollow target=_blank ymailto="mailto:david.cole@kitware.com">david.cole@kitware.com</A>&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: David Cole &lt;<A href="http://us.mc576.mail.yahoo.com/mc/compose?to=david.cole@kitware.com" rel=nofollow target=_blank ymailto="mailto:david.cole@kitware.com">david.cole@kitware.com</A>&gt;<BR>Subject: Re: [CMake] ctest_submit() error<BR>To: "girish hilage" &lt;<A href="http://us.mc576.mail.yahoo.com/mc/compose?to=girish_hilage@yahoo.com" rel=nofollow target=_blank ymailto="mailto:girish_hilage@yahoo.com">girish_hilage@yahoo.com</A>&gt;<BR>Cc: <A href="http://us.mc576.mail.yahoo.com/mc/compose?to=cmake@cmake.org" rel=nofollow target=_blank ymailto="mailto:cmake@cmake.org">cmake@cmake.org</A><BR>Date: Monday, December 27, 2010, 1:55 PM
<DIV>
<DIV></DIV>
<DIV class=yiv1592175274h5><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: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex">
<TABLE border=0 cellSpacing=0 cellPadding=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 "cmake ." then I am getting below error :<BR><BR>CMake Error at CTestConfig.cmake:8 (ctest_submit):<BR>&nbsp; Unknown CMake command "ctest_submit".<BR>Call Stack (most recent call first):<BR>&nbsp; /usr/share/cmake-2.6/Modules/CTest.cmake:50 (INCLUDE)<BR>&nbsp; CMakeLists.txt:117 (INCLUDE)<BR><BR>- if I give it in CMakeLists.txt and give "cmake ." then I am getting below error :<BR><BR>CMake Error at CMakeLists.txt:121 (ctest_submit):<BR>&nbsp; Unknown CMake command "ctest_submit".<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 "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.</DIV>
<DIV><BR></DIV>
<DIV>HTH,</DIV>
<DIV>David</DIV>
<DIV><BR></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex">
<TABLE border=0 cellSpacing=0 cellPadding=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 "ctest --version"?)<BR><BR>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)<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></DIV></BLOCKQUOTE></td></tr></table><br>