After setting up the project on the CDash server, the project administrator should be able to download the CTestConfig.cmake from CDash to put in the source tree. Your CTestConfig.cmake does not have the proper variable definitions in it to work with CDash... for example, this is a snippet from CTestConfig.cmake in the CMake source tree:<br>
<br><div><div>set(CTEST_PROJECT_NAME "CMake")</div><div>set(CTEST_NIGHTLY_START_TIME "21:00:00 EDT")</div><div><br></div><div>set(CTEST_DROP_METHOD "http")</div><div>set(CTEST_DROP_SITE "<a href="http://www.cdash.org">www.cdash.org</a>")</div>
<div>set(CTEST_DROP_LOCATION "/CDash/submit.php?project=CMake")</div><div>set(CTEST_DROP_SITE_CDASH TRUE)</div><div><br></div><div>All of the variables begin with CTEST_....</div><div><br></div><div>CDash should generate the proper CTestConfig.cmake for you after the project has been set up.</div>
<div><br></div><div>After logging in as project admin on CDash, go to the "Edit Project" page, click on the "Miscellaneous" tab and then click on the link labelled "Download CTestConfig:"</div>
<div><br></div><div><br></div><div>David</div><div><br></div><div><br><div><br><div class="gmail_quote">On Thu, Jun 4, 2009 at 12:26 PM, Steve Huston <span dir="ltr"><<a href="mailto:shuston@riverace.com">shuston@riverace.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Still have problems...<br>
<br>
On Linux, I cd to my main source dir...<br>
<br>
[shuston@smokey cpp]$ ctest -S ~/trunk_nightly.cmake<br>
<div class="im">Unable to run ctest:<br>
Cannot find file:<br>
</div>/qpidbuilds/trunk/qpid/cpp/rhel5/DartConfiguration.tcl<br>
<div class="im"> Site:<br>
Build name:<br>
WARNING: No nightly start time found please set in CTestConfig.cmake<br>
or DartConfig.cmake<br>
Problem initializing the dashboard.<br>
<br>
<br>
</div>My CTestConfig.cmake is in the same directory I ran ctest from. It<br>
contains:<br>
<br>
[shuston@smokey cpp]$ cat CTestConfig.cmake<br>
# Submit build to <a href="http://riverace.com" target="_blank">riverace.com</a>'s CDash dashboard.<br>
SET(DROP_METHOD "http")<br>
SET(DROP_SITE "<a href="http://www.riverace.com" target="_blank">www.riverace.com</a>")<br>
SET(DROP_LOCATION "CDash-1.4.2/submit.php?project=Qpid%20C++")<br>
<br>
set (NIGHTLY_START_TIME "00:00:00 EDT")<br>
<br>
<br>
<br>
My script (trunk_nightly.cmake) has:<br>
<br>
[shuston@smokey cpp]$ more ~/trunk_nightly.cmake<br>
# CMake/CTest script to run the daily/nightly build against trunk<br>
<br>
set (CTEST_SOURCE_DIRECTORY /qpidbuilds/trunk/qpid/cpp)<br>
set (CTEST_BINARY_DIRECTORY /qpidbuilds/trunk/qpid/cpp/rhel5)<br>
set (CTEST_COMMAND "\"${CTEST_EXECUTABLE_NAME}\" -D Nightly")<br>
set (CTEST_MAKE_COMMAND "\"${CMAKE_EXECUTABLE_NAME}\"")<br>
<br>
# Wipe the build dir to ensure a clean build<br>
set (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)<br>
<br>
# Set up initial cache entries to get started<br>
set (CTEST_INITIAL_CACHE "<br>
<br>
... A bunch of settings that do end up in the cache file in a clean<br>
dir<br>
")<br>
<br>
find_program(CTEST_SVN_COMMAND NAMES svn)<br>
<br>
set (CTEST_CVS_COMMAND "${CTEST_SVN_COMMAND}")<br>
set (CTEST_EXTRA_UPDATES_1 "C:/ace/exported/qpid/trunk/qpid/specs")<br>
set (CTEST_EXTRA_UPDATES_2 "C:/ace/exported/qpid/trunk/qpid/gentools")<br>
<br>
set (CTEST_ENVIRONMENT<br>
"LD_LIBRARY_PATH=${CTEST_BINARY_DIRECTORY}/src:/usr/lib}")<br>
<br>
set (NIGHTLY_START_TIME "00:00:00 EDT")<br>
<font color="#888888"><br>
--<br>
Steve Huston, Riverace Corporation<br>
<a href="mailto:shuston@riverace.com">shuston@riverace.com</a><br>
</font><div><div></div><div class="h5"><br>
-----Original Message-----<br>
From: David Cole [mailto:<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>]<br>
Sent: Thursday, June 04, 2009 11:11 AM<br>
To: Tyler Roscoe<br>
Cc: Steve Huston; <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
Subject: Re: [CMake] Trouble starting ctest run with intention of<br>
reporting to dashboard<br>
<br>
<br>
- Download the CTestConfig.cmake from CDash<br>
- Place it at the top of your source tree (next to your main<br>
CMakeLists.txt)<br>
- No need for the --ctest-config on the ctest command line<br>
<br>
<br>
<br>
Arrange it like that, and let us know if you still have problems.<br>
<br>
<br>
<br>
<br>
HTH,<br>
David<br>
<br>
<br>
<br>
<br>
On Thu, Jun 4, 2009 at 11:03 AM, Tyler Roscoe <<a href="mailto:tyler@cryptio.net">tyler@cryptio.net</a>><br>
wrote:<br>
<br>
On Wed, Jun 03, 2009 at 07:21:33PM -0400, Steve Huston wrote:<br>
> C:\ace\exported\qpid> ctest -S trunk_nightly.cmake --ctest-config<br>
> trunk\qpid\cpp\CTestConfig.cmake<br>
> Unable to run ctest:<br>
> Cannot find file:<br>
> C:/ace/exported/qpid/trunk/qpid/cpp/build/DartConfiguration.tcl<br>
> Site:<br>
> Build name:<br>
> WARNING: No nightly start time found please set in CTestConfig.cmake<br>
> or DartConfig.cmake<br>
> Problem initializing the dashboard.<br>
><br>
> It doesn't seem to see my CTestConfig.cmake file - it has a<br>
> NIGHTLY_START_TIME in it.<br>
<br>
<br>
ctest might expect to find CTestConfig.cmake relative to your current<br>
binary directory rather than relative to your working directory. Maybe<br>
try fixing up your --ctest-config path or using an absolute path to<br>
your<br>
CTestConfig?<br>
<br>
<br>
> And what's DartConfiguration.tcl? It wasn't mentioned in the<br>
> "Mastering Cmake" book, and I'm trying to use cdash, not dart.<br>
<br>
<br>
Dart is the ancestor of CDash. CMake still writes out a<br>
DartConfiguration.tcl in every binary directory where include(CTest)<br>
has<br>
been run.<br>
<br>
So actually, make sure you are doing include(CTest) in your<br>
CMakeLists.<br>
Maybe this will fix your first problem as well?<br>
<br>
tyler<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at:<br>
<a href="http://www.cmake.org/Wiki/CMake_FAQ" 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" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>
</div></div></blockquote></div><br></div></div></div>