[Dart] [Newbie] Building the HTML reports on the Dart server.

Miller, James V (GE, Research) millerjv at crd.ge.com
Wed Jun 7 10:21:25 EDT 2006


Eric,

Here is small project that works.  You need a CMakeLists.txt file and a CTestConfig.cmake file.
Do not set DART_ROOT in CMakeSetup.  DART_ROOT is for the old Dart client.  It cannot be used for the
new Dart server.  You might want to start from a clean build tree.

I have updated the documentation.


---- CMakeLists.txt file -----
Project(TestProject)

ENABLE_TESTING()
INCLUDE( CTest )

ADD_EXECUTABLE(foo foo.cxx)

ADD_TEST(foo foo)

---- CTestConfig.cmake ----
SET (CTEST_PROJECT_NAME "TestProject")
SET (CTEST_NIGHTLY_START_TIME "21:00:00 EDT")
SET (CTEST_DROP_METHOD "xmlrpc")
SET (CTEST_DROP_SITE "http://localhost:8081")
SET (CTEST_DROP_LOCATION "TestProject")
SET (CTEST_COMPRESS_SUBMISSION ON)
SET (CTEST_TRIGGER_SITE "")

---- foo.cxx ----
int main(int argc, char* argv[])
{
  int i;
}

-----Original Message-----
From: Eric BOIX [mailto:eboix at ens-lyon.fr]
Sent: Wednesday, June 07, 2006 9:40 AM
To: Miller, James V (GE, Research)
Cc: dart at public.kitware.com
Subject: Re: [Dart] [Newbie] Building the HTML reports on the Dart
server.


	Dear James,

Quoting Miller, James V (GE, Research) <millerjv at crd.ge.com>:
> You do not need the Dart1 client. The documentation may be incorrect if it
> is leading you to this conclusion.
Well maybe I missed a step !? The only thing I seem to know is that when the
documentation (Dart1.0.0/Dart.pdf) mentions including the line 
   INCLUDE(Dart)
in my CMakeLists.txt then cmake will load the content of
${CMAKE_ROOT}/Modules/Dart.cmake (I checked that by renaming this file
and watched cmake issue a warning about Dart being unfound).

Now if you look a this Dart.cmake file among the few first comment lines you
can read:
  Section #2: Configure or copy Tcl scripts from the source tree to build tree
and this reference to Tcl scripts implies Dart Classic to be installed.
I am allready wrong here ?!?

You can come to the same conclusion by answering to ccmake which asks
for a DART_ROOT variable to be set (this is due to the above mentioned
${CMAKE_ROOT}/Modules/Dart.cmake). And ccmake will keep on displaying
DART_ROOT as DART_ROOT-NOTFOUND untill you feed it with a path to...
some Dart Classic install.

I currently use cmake version 2.2.3 (linux) but cmake version 2.4.2 has
a ${CMAKE_ROOT}/Modules/Dart.cmake which is almost identital to it's
2.2.3 ancestor...

> For Dart2, you need to use the CTest client.
> ctest -D Experimental
> should do everything you want.
Well I'm so deep under that it doesn't. Is there some debug level or 
option of ctest or any mean to get some clues about what I'm doing wrong ?
Man, I really got lost...

	Thanks for any directions, :)
	Yours,
	Eric Boix.


More information about the Dart mailing list