Hi, Andy,

Thanks for your response.

Here is the ctest script I used.
The error message I got are shown in the previous mail.
Any suggestions would be appreciated..

-----script.cmake--------------------------------------------------------------------

SET (NIGHTLY_START_TIME "23:00:00 EDT")

SET (CMAKE_BACKWARDS_COMPATIBILITY 1.4)
SET (CMAKE_MAKE_PROGRAM "make")
SET (CMAKE_ROOT "/usr/local/cmake-2.4.1")

SET (CTEST_SOURCE_DIRECTORY "/home/okuda/test/ccmake/hello2")
SET (CTEST_BINARY_DIRECTORY "/home/okuda/test/ccmake/hello2-bin")
SET (CTEST_CVS_CHECKOUT "${CTEST_CVS_COMMAND} -d:local:/tmp/localrepo co -d checkout hello2")
SET (CTEST_CVS_COMMAND "/usr/bin/cvs")
SET (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)
SET (CTEST_COMMAND "/usr/local/bin/ctest -D Experimental")

INCLUDE (Dart)
INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/DartConfiguration.tcl.in /home/okuda/test/ccmake/hello2-bin/CTestConfiguration.ini @ONLY IMMEDIATE)
# what cmake command to use for configuring this dashboard
SET (CTEST_CMAKE_COMMAND "/usr/local/bin/cmake")
SET (CTEST_CONTINUOUS_DURATION 600)
SET (CTEST_CONTINUOUS_MINIMUM_INTERVAL 10)
SET (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE 1)
SET(BUILD_NAME hello2)
SET(SITE "Fuji")

# this is the initial cache to use for the binary tree, be careful to escape
# any quotes inside of this string if you use it
SET (CTEST_INITIAL_CACHE "
MAKECOMMAND:STRING=make
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
#Name of the build
BUILDNAME:STRING=hello2
#Name of the computer
SITE:STRING=Fuji
#Path to the CVS
CVSCOMMAND:FILEPATH=/usr/bin/cvs
")
-----------------------------------------------------------

Hirohito


Andy Cedilnik wrote:
Hello,

Would you mind sending the script.cmake file?

      Andy

Hirohito Okuda wrote:
Hi,

I am trying to use ctest as a Dart2 client,starting with a very simple
settings. I wrote a CMake script "script.cmake" following a guidance on
the Cmake WIKI pages, and made it run. But I got following error messages.

----------------------------------------------------------------------------

>ctest -S script.cmake
Unable to run ctest:
 Site:
 Build name:
Cannot find file: /home/okuda/test/ccmake/hello2/bin/CTestConfiguration.ini
Problem initializing the dashboard.

----------------------------------------------------------------------------

My questions are,

1. Is there any more complete "free" document which tells how to write ctest
 script ? Or do I have to buy the "Mastering CMake"book ?

2. All I know so far is, CTestConfiguration.ini should be copied from the Cmake directory by "CONFIGURE_FILE". After I got the above messeage,I put a line \
 like this,

 CONFIGURE_FILE(${CMAKE_ROOT}/Modules/DartConfiguration.tcl.in
$(CTEST_BINARY_DIRECTORY}/CTestConfiguration.ini COPYONLY)

but got the same message again.I wonder why CONFIGURE_FILE actually doesn't
 copy the file.

Any small, incomplete suggestions would be appreciated.

Thanks.

Hirohito

Yale University, school of medicine


_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake




_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to