OK. You have a correct CTestConfig.cmake now.<div><br></div><div>Is it at the top level of your source tree? (In "${CTEST_SOURCE_DIRECTORY}"?)</div><div>Do you "include(CTest)" 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"><<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;">
Hi folks,<br>
<br>
I'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("../../CTestConfig.cmake", R_OK) = 0<br>
open("../../CTestConfig.cmake", 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, "## This file should be placed in"..., 8192) = 541<br>
read(3, "", 4096) = 0<br>
read(3, "", 8192) = 0<br>
close(3) = 0<br>
<br>
But still reported the same problem that there'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 "Qpid")<br>
<div class="im">set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")<br>
<br>
set(CTEST_DROP_METHOD "http")<br>
set(CTEST_DROP_SITE "<a href="http://www.riverace.com" target="_blank">www.riverace.com</a>")<br>
</div>set(CTEST_DROP_LOCATION "/CDash-1.4.2/submit.php?project=Qpid")<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>
> -----Original Message-----<br>
> From: <a href="mailto:cmake-bounces@cmake.org">cmake-bounces@cmake.org</a><br>
> [mailto:<a href="mailto:cmake-bounces@cmake.org">cmake-bounces@cmake.org</a>] On Behalf Of Steve Huston<br>
> Sent: Thursday, June 04, 2009 1:27 PM<br>
> To: 'David Cole'<br>
> Cc: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
> Subject: Re: [CMake] Trouble starting ctest run with<br>
> intention of reportingto dashboard<br>
><br>
><br>
> Thanks for the quick assistance, David. No joy though...<br>
><br>
> > After setting up the project on the CDash server, the project<br>
> > administrator should be able to download the CTestConfig.cmake<br>
> > from CDash to put in the source tree.<br>
><br>
> Ah, ok. I did this. I don't remember reading a direction like this<br>
> while setting up the project, but may have missed it.<br>
><br>
> > Your CTestConfig.cmake does not have the proper variable<br>
definitions<br>
> > in it to work with CDash... for example, this is a snippet from<br>
> > CTestConfig.cmake in the CMake source tree:<br>
> > ...<br>
> > All of the variables begin with CTEST_....<br>
><br>
> Ah-ha... The example CTestConfig.cmake in "Mastering Cmake" pg 195<br>
> don't have the CTEST_ prefixes either.<br>
><br>
> > CDash should generate the proper CTestConfig.cmake for you after<br>
the<br>
> > project has been set up.<br>
><br>
> Ok, I did this. The file generated is:<br>
><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>
> set(CTEST_PROJECT_NAME "Qpid%20C++")<br>
> set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")<br>
><br>
> set(CTEST_DROP_METHOD "http")<br>
> set(CTEST_DROP_SITE "<a href="http://www.riverace.com" target="_blank">www.riverace.com</a>")<br>
> set(CTEST_DROP_LOCATION<br>
> "/CDash-1.4.2/submit.php?project=Qpid%2520C%2B%2B")<br>
> set(CTEST_DROP_SITE_CDASH TRUE)<br>
><br>
> I put this in the top-level source directory and retried. This time<br>
> with -VV:<br>
><br>
> [shuston@smokey cpp]$ ctest -VV -S ~/trunk_nightly.cmake<br>
> * Extra verbosity turned on<br>
> Reading Script: /home/shuston/trunk_nightly.cmake<br>
> Run ctest command:<br>
> "/home/shuston/Desktop/cmake-2.6.2-Linux-i386/bin/ctest" -D Nightly<br>
> Cannot find file:<br>
> /qpidbuilds/trunk/qpid/cpp/rhel5/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>
> Unable to run ctest:<br>
> Cannot find file:<br>
> /qpidbuilds/trunk/qpid/cpp/rhel5/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>
><br>
> I'm not sure it's even seeing the CTestConfig.cmake file - after the<br>
> run above, I added a junk line to the top of the file and re-ran<br>
> ctest... No change in output. I was thinking it should complain<br>
about<br>
> the junk in the file.<br>
><br>
> What do you think?<br>
><br>
> Thanks,<br>
> -Steve<br>
><br>
><br>
> On Thu, Jun 4, 2009 at 12:26 PM, Steve Huston <<a href="mailto:shuston@riverace.com">shuston@riverace.com</a>><br>
> wrote:<br>
><br>
> 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>
><br>
> Unable to run ctest:<br>
> Cannot find file:<br>
><br>
> /qpidbuilds/trunk/qpid/cpp/rhel5/DartConfiguration.tcl<br>
><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>
><br>
><br>
> 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<br>
"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>
><br>
> --<br>
> Steve Huston, Riverace Corporation<br>
> <a href="mailto:shuston@riverace.com">shuston@riverace.com</a><br>
><br>
><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<br>
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<br>
current<br>
> binary directory rather than relative to your working directory.<br>
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>
> _______________________________________________<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>
<br>
</div></div></blockquote></div><br></div>