[CMake] Trouble starting ctest run with intention of reporting to dashboard

Steve Huston shuston at riverace.com
Thu Jun 4 12:26:55 EDT 2009


Still have problems...

On Linux, I cd to my main source dir...

[shuston at smokey cpp]$ ctest -S ~/trunk_nightly.cmake
Unable to run ctest:
Cannot find file:
/qpidbuilds/trunk/qpid/cpp/rhel5/DartConfiguration.tcl
   Site: 
   Build name: 
WARNING: No nightly start time found please set in CTestConfig.cmake
or DartConfig.cmake
Problem initializing the dashboard.


My CTestConfig.cmake is in the same directory I ran ctest from. It
contains:

[shuston at smokey cpp]$ cat CTestConfig.cmake
# Submit build to riverace.com's CDash dashboard.
SET(DROP_METHOD "http")
SET(DROP_SITE "www.riverace.com")
SET(DROP_LOCATION "CDash-1.4.2/submit.php?project=Qpid%20C++")

set (NIGHTLY_START_TIME "00:00:00 EDT")



My script (trunk_nightly.cmake) has:

[shuston at smokey cpp]$ more ~/trunk_nightly.cmake
# CMake/CTest script to run the daily/nightly build against trunk

set (CTEST_SOURCE_DIRECTORY /qpidbuilds/trunk/qpid/cpp)
set (CTEST_BINARY_DIRECTORY /qpidbuilds/trunk/qpid/cpp/rhel5)
set (CTEST_COMMAND "\"${CTEST_EXECUTABLE_NAME}\" -D Nightly")
set (CTEST_MAKE_COMMAND "\"${CMAKE_EXECUTABLE_NAME}\"")

# Wipe the build dir to ensure a clean build
set (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)

# Set up initial cache entries to get started
set (CTEST_INITIAL_CACHE "

... A bunch of settings that do end up in the cache file in a clean
dir
")

find_program(CTEST_SVN_COMMAND NAMES svn)

set (CTEST_CVS_COMMAND "${CTEST_SVN_COMMAND}")
set (CTEST_EXTRA_UPDATES_1 "C:/ace/exported/qpid/trunk/qpid/specs")
set (CTEST_EXTRA_UPDATES_2 "C:/ace/exported/qpid/trunk/qpid/gentools")

set (CTEST_ENVIRONMENT
"LD_LIBRARY_PATH=${CTEST_BINARY_DIRECTORY}/src:/usr/lib}")

set (NIGHTLY_START_TIME "00:00:00 EDT")

--
Steve Huston, Riverace Corporation
shuston at riverace.com

-----Original Message-----
From: David Cole [mailto:david.cole at kitware.com] 
Sent: Thursday, June 04, 2009 11:11 AM
To: Tyler Roscoe
Cc: Steve Huston; cmake at cmake.org
Subject: Re: [CMake] Trouble starting ctest run with intention of
reporting to dashboard


- Download the CTestConfig.cmake from CDash
- Place it at the top of your source tree (next to your main
CMakeLists.txt)
- No need for the --ctest-config on the ctest command line



Arrange it like that, and let us know if you still have problems.




HTH,
David




On Thu, Jun 4, 2009 at 11:03 AM, Tyler Roscoe <tyler at cryptio.net>
wrote:

On Wed, Jun 03, 2009 at 07:21:33PM -0400, Steve Huston wrote:
> C:\ace\exported\qpid> ctest -S trunk_nightly.cmake --ctest-config
> trunk\qpid\cpp\CTestConfig.cmake
> Unable to run ctest:
> Cannot find file:
> C:/ace/exported/qpid/trunk/qpid/cpp/build/DartConfiguration.tcl
>    Site:
>    Build name:
> WARNING: No nightly start time found please set in CTestConfig.cmake
> or DartConfig.cmake
> Problem initializing the dashboard.
>
> It doesn't seem to see my CTestConfig.cmake file - it has a
> NIGHTLY_START_TIME in it.


ctest might expect to find CTestConfig.cmake relative to your current
binary directory rather than relative to your working directory. Maybe
try fixing up your --ctest-config path or using an absolute path to
your
CTestConfig?


> And what's DartConfiguration.tcl? It wasn't mentioned in the
> "Mastering Cmake" book, and I'm trying to use cdash, not dart.


Dart is the ancestor of CDash. CMake still writes out a
DartConfiguration.tcl in every binary directory where include(CTest)
has
been run.

So actually, make sure you are doing include(CTest) in your
CMakeLists.
Maybe this will fix your first problem as well?

tyler

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list