OK. You have a correct CTestConfig.cmake now.<div><br></div><div>Is it at the top level of your source tree? (In &quot;${CTEST_SOURCE_DIRECTORY}&quot;?)</div><div>Do you &quot;include(CTest)&quot; in your CMakeLists.txt file?<br>
<br></div><div><br><div class="gmail_quote">On Wed, Jun 10, 2009 at 2:02 PM, Steve Huston <span dir="ltr">&lt;<a href="mailto:shuston@riverace.com">shuston@riverace.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi folks,<br>
<br>
I&#39;ve tried a few more things and am at a loss at this point.<br>
<br>
First, I ran this under strace on Linux to see what ctest was really<br>
doing. For defaults on the config file, when ctest reports:<br>
<div class="im"><br>
Cannot find file:<br>
/qpidbuilds/trunk/qpid/cpp/rhel5/DartConfiguration.tcl<br>
<br>
</div>it is actually looking for either of these:<br>
<br>
./CTestConfiguration.ini<br>
./DartConfiguration.tcl<br>
<br>
Once I knew that, I used the --ctest-config option to point ctest to<br>
the actual file. It appeared to read the file:<br>
<br>
access(&quot;../../CTestConfig.cmake&quot;, R_OK) = 0<br>
open(&quot;../../CTestConfig.cmake&quot;, O_RDONLY) = 3<br>
fstat64(3, {st_mode=S_IFREG|0744, st_size=541, ...}) = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,<br>
0) = 0xfffffffff7f54000<br>
read(3, &quot;## This file should be placed in&quot;..., 8192) = 541<br>
read(3, &quot;&quot;, 4096)                       = 0<br>
read(3, &quot;&quot;, 8192)                       = 0<br>
close(3)                                = 0<br>
<br>
But still reported the same problem that there&#39;s no nightly start time<br>
found.<br>
The config file I downloaded from my cdash install is:<br>
<div class="im"><br>
## This file should be placed in the root directory of your project.<br>
## Then modify the CMakeLists.txt file in the root directory of your<br>
## project to incorporate the testing dashboard.<br>
## # The following are required to uses Dart and the Cdash dashboard<br>
##   ENABLE_TESTING()<br>
##   INCLUDE(CTest)<br>
</div>set(CTEST_PROJECT_NAME &quot;Qpid&quot;)<br>
<div class="im">set(CTEST_NIGHTLY_START_TIME &quot;00:00:00 EST&quot;)<br>
<br>
set(CTEST_DROP_METHOD &quot;http&quot;)<br>
set(CTEST_DROP_SITE &quot;<a href="http://www.riverace.com" target="_blank">www.riverace.com</a>&quot;)<br>
</div>set(CTEST_DROP_LOCATION &quot;/CDash-1.4.2/submit.php?project=Qpid&quot;)<br>
<div class="im">set(CTEST_DROP_SITE_CDASH TRUE)<br>
<br>
</div>Any clues on what needs to be set?<br>
<br>
Thanks,<br>
<font color="#888888">-Steve<br>
</font><div><div></div><div class="h5"><br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:cmake-bounces@cmake.org">cmake-bounces@cmake.org</a><br>
&gt; [mailto:<a href="mailto:cmake-bounces@cmake.org">cmake-bounces@cmake.org</a>] On Behalf Of Steve Huston<br>
&gt; Sent: Thursday, June 04, 2009 1:27 PM<br>
&gt; To: &#39;David Cole&#39;<br>
&gt; Cc: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
&gt; Subject: Re: [CMake] Trouble starting ctest run with<br>
&gt; intention of reportingto dashboard<br>
&gt;<br>
&gt;<br>
&gt; Thanks for the quick assistance, David. No joy though...<br>
&gt;<br>
&gt; &gt; After setting up the project on the CDash server, the project<br>
&gt; &gt; administrator should be able to download the CTestConfig.cmake<br>
&gt; &gt; from CDash to put in the source tree.<br>
&gt;<br>
&gt; Ah, ok. I did this. I don&#39;t remember reading a direction like this<br>
&gt; while setting up the project, but may have missed it.<br>
&gt;<br>
&gt; &gt; Your CTestConfig.cmake does not have the proper variable<br>
definitions<br>
&gt; &gt; in it to work with CDash... for example, this is a snippet from<br>
&gt; &gt; CTestConfig.cmake in the CMake source tree:<br>
&gt; &gt; ...<br>
&gt; &gt; All of the variables begin with CTEST_....<br>
&gt;<br>
&gt; Ah-ha... The example CTestConfig.cmake in &quot;Mastering Cmake&quot; pg 195<br>
&gt; don&#39;t have the CTEST_ prefixes either.<br>
&gt;<br>
&gt; &gt; CDash should generate the proper CTestConfig.cmake for you after<br>
the<br>
&gt; &gt; project has been set up.<br>
&gt;<br>
&gt; Ok, I did this. The file generated is:<br>
&gt;<br>
&gt; ## This file should be placed in the root directory of your project.<br>
&gt; ## Then modify the CMakeLists.txt file in the root directory of your<br>
&gt; ## project to incorporate the testing dashboard.<br>
&gt; ## # The following are required to uses Dart and the Cdash dashboard<br>
&gt; ##   ENABLE_TESTING()<br>
&gt; ##   INCLUDE(CTest)<br>
&gt; set(CTEST_PROJECT_NAME &quot;Qpid%20C++&quot;)<br>
&gt; set(CTEST_NIGHTLY_START_TIME &quot;00:00:00 EST&quot;)<br>
&gt;<br>
&gt; set(CTEST_DROP_METHOD &quot;http&quot;)<br>
&gt; set(CTEST_DROP_SITE &quot;<a href="http://www.riverace.com" target="_blank">www.riverace.com</a>&quot;)<br>
&gt; set(CTEST_DROP_LOCATION<br>
&gt; &quot;/CDash-1.4.2/submit.php?project=Qpid%2520C%2B%2B&quot;)<br>
&gt; set(CTEST_DROP_SITE_CDASH TRUE)<br>
&gt;<br>
&gt; I put this in the top-level source directory and retried. This time<br>
&gt; with -VV:<br>
&gt;<br>
&gt; [shuston@smokey cpp]$ ctest -VV -S ~/trunk_nightly.cmake<br>
&gt; * Extra verbosity turned on<br>
&gt; Reading Script: /home/shuston/trunk_nightly.cmake<br>
&gt; Run ctest command:<br>
&gt; &quot;/home/shuston/Desktop/cmake-2.6.2-Linux-i386/bin/ctest&quot; -D Nightly<br>
&gt; Cannot find file:<br>
&gt; /qpidbuilds/trunk/qpid/cpp/rhel5/DartConfiguration.tcl<br>
&gt;    Site:<br>
&gt;    Build name:<br>
&gt; WARNING: No nightly start time found please set in CTestConfig.cmake<br>
&gt; or DartConfig.cmake<br>
&gt; Problem initializing the dashboard.<br>
&gt; Unable to run ctest:<br>
&gt; Cannot find file:<br>
&gt; /qpidbuilds/trunk/qpid/cpp/rhel5/DartConfiguration.tcl<br>
&gt;    Site:<br>
&gt;    Build name:<br>
&gt; WARNING: No nightly start time found please set in CTestConfig.cmake<br>
&gt; or DartConfig.cmake<br>
&gt; Problem initializing the dashboard.<br>
&gt;<br>
&gt;<br>
&gt; I&#39;m not sure it&#39;s even seeing the CTestConfig.cmake file - after the<br>
&gt; run above, I added a junk line to the top of the file and re-ran<br>
&gt; ctest... No change in output. I was thinking it should complain<br>
about<br>
&gt; the junk in the file.<br>
&gt;<br>
&gt; What do you think?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; -Steve<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Jun 4, 2009 at 12:26 PM, Steve Huston &lt;<a href="mailto:shuston@riverace.com">shuston@riverace.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; Still have problems...<br>
&gt;<br>
&gt; On Linux, I cd to my main source dir...<br>
&gt;<br>
&gt; [shuston@smokey cpp]$ ctest -S ~/trunk_nightly.cmake<br>
&gt;<br>
&gt; Unable to run ctest:<br>
&gt; Cannot find file:<br>
&gt;<br>
&gt; /qpidbuilds/trunk/qpid/cpp/rhel5/DartConfiguration.tcl<br>
&gt;<br>
&gt;   Site:<br>
&gt;   Build name:<br>
&gt; WARNING: No nightly start time found please set in CTestConfig.cmake<br>
&gt; or DartConfig.cmake<br>
&gt; Problem initializing the dashboard.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; My CTestConfig.cmake is in the same directory I ran ctest from. It<br>
&gt; contains:<br>
&gt;<br>
&gt; [shuston@smokey cpp]$ cat CTestConfig.cmake<br>
&gt; # Submit build to <a href="http://riverace.com" target="_blank">riverace.com</a>&#39;s CDash dashboard.<br>
&gt; SET(DROP_METHOD &quot;http&quot;)<br>
&gt; SET(DROP_SITE &quot;<a href="http://www.riverace.com" target="_blank">www.riverace.com</a>&quot;)<br>
&gt; SET(DROP_LOCATION &quot;CDash-1.4.2/submit.php?project=Qpid%20C++&quot;)<br>
&gt;<br>
&gt; set (NIGHTLY_START_TIME &quot;00:00:00 EDT&quot;)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; My script (trunk_nightly.cmake) has:<br>
&gt;<br>
&gt; [shuston@smokey cpp]$ more ~/trunk_nightly.cmake<br>
&gt; # CMake/CTest script to run the daily/nightly build against trunk<br>
&gt;<br>
&gt; set (CTEST_SOURCE_DIRECTORY /qpidbuilds/trunk/qpid/cpp)<br>
&gt; set (CTEST_BINARY_DIRECTORY /qpidbuilds/trunk/qpid/cpp/rhel5)<br>
&gt; set (CTEST_COMMAND &quot;\&quot;${CTEST_EXECUTABLE_NAME}\&quot; -D Nightly&quot;)<br>
&gt; set (CTEST_MAKE_COMMAND &quot;\&quot;${CMAKE_EXECUTABLE_NAME}\&quot;&quot;)<br>
&gt;<br>
&gt; # Wipe the build dir to ensure a clean build<br>
&gt; set (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)<br>
&gt;<br>
&gt; # Set up initial cache entries to get started<br>
&gt; set (CTEST_INITIAL_CACHE &quot;<br>
&gt;<br>
&gt; ... A bunch of settings that do end up in the cache file in a clean<br>
&gt; dir<br>
&gt; &quot;)<br>
&gt;<br>
&gt; find_program(CTEST_SVN_COMMAND NAMES svn)<br>
&gt;<br>
&gt; set (CTEST_CVS_COMMAND &quot;${CTEST_SVN_COMMAND}&quot;)<br>
&gt; set (CTEST_EXTRA_UPDATES_1 &quot;C:/ace/exported/qpid/trunk/qpid/specs&quot;)<br>
&gt; set (CTEST_EXTRA_UPDATES_2<br>
&quot;C:/ace/exported/qpid/trunk/qpid/gentools&quot;)<br>
&gt;<br>
&gt; set (CTEST_ENVIRONMENT<br>
&gt; &quot;LD_LIBRARY_PATH=${CTEST_BINARY_DIRECTORY}/src:/usr/lib}&quot;)<br>
&gt;<br>
&gt; set (NIGHTLY_START_TIME &quot;00:00:00 EDT&quot;)<br>
&gt;<br>
&gt; --<br>
&gt; Steve Huston, Riverace Corporation<br>
&gt; <a href="mailto:shuston@riverace.com">shuston@riverace.com</a><br>
&gt;<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: David Cole [mailto:<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>]<br>
&gt; Sent: Thursday, June 04, 2009 11:11 AM<br>
&gt; To: Tyler Roscoe<br>
&gt; Cc: Steve Huston; <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
&gt; Subject: Re: [CMake] Trouble starting ctest run with intention of<br>
&gt; reporting to dashboard<br>
&gt;<br>
&gt;<br>
&gt; - Download the CTestConfig.cmake from CDash<br>
&gt; - Place it at the top of your source tree (next to your main<br>
&gt; CMakeLists.txt)<br>
&gt; - No need for the --ctest-config on the ctest command line<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Arrange it like that, and let us know if you still have problems.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; HTH,<br>
&gt; David<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Jun 4, 2009 at 11:03 AM, Tyler Roscoe &lt;<a href="mailto:tyler@cryptio.net">tyler@cryptio.net</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; On Wed, Jun 03, 2009 at 07:21:33PM -0400, Steve Huston wrote:<br>
&gt; &gt; C:\ace\exported\qpid&gt; ctest -S trunk_nightly.cmake --ctest-config<br>
&gt; &gt; trunk\qpid\cpp\CTestConfig.cmake<br>
&gt; &gt; Unable to run ctest:<br>
&gt; &gt; Cannot find file:<br>
&gt; &gt; C:/ace/exported/qpid/trunk/qpid/cpp/build/DartConfiguration.tcl<br>
&gt; &gt;    Site:<br>
&gt; &gt;    Build name:<br>
&gt; &gt; WARNING: No nightly start time found please set in<br>
CTestConfig.cmake<br>
&gt; &gt; or DartConfig.cmake<br>
&gt; &gt; Problem initializing the dashboard.<br>
&gt; &gt;<br>
&gt; &gt; It doesn&#39;t seem to see my CTestConfig.cmake file - it has a<br>
&gt; &gt; NIGHTLY_START_TIME in it.<br>
&gt;<br>
&gt;<br>
&gt; ctest might expect to find CTestConfig.cmake relative to your<br>
current<br>
&gt; binary directory rather than relative to your working directory.<br>
Maybe<br>
&gt; try fixing up your --ctest-config path or using an absolute path to<br>
&gt; your<br>
&gt; CTestConfig?<br>
&gt;<br>
&gt;<br>
&gt; &gt; And what&#39;s DartConfiguration.tcl? It wasn&#39;t mentioned in the<br>
&gt; &gt; &quot;Mastering Cmake&quot; book, and I&#39;m trying to use cdash, not dart.<br>
&gt;<br>
&gt;<br>
&gt; Dart is the ancestor of CDash. CMake still writes out a<br>
&gt; DartConfiguration.tcl in every binary directory where include(CTest)<br>
&gt; has<br>
&gt; been run.<br>
&gt;<br>
&gt; So actually, make sure you are doing include(CTest) in your<br>
&gt; CMakeLists.<br>
&gt; Maybe this will fix your first problem as well?<br>
&gt;<br>
&gt; tyler<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>