[Dart] Dart2 and CTest

David Cole david.cole at kitware.com
Fri Oct 27 14:39:45 EDT 2006


I got this working with a default installation of Dart2 (I just
followed the directions and ended up with a Dart2 TestServer with a
TestProject...) and CMake 2.4.3.

I took a small standalone project and added the following to it:
(1) In the main/top-level CMakeLists.txt:
INCLUDE(Dart)
ENABLE_TESTING()

(2) CTestConfig.cmake:
SET(CTEST_DROP_LOCATION "TestProject")
SET(CTEST_DROP_METHOD "xmlrpc")
SET(CTEST_DROP_SITE "localhost:8081")

This seems to be the minimum set of settings for submitting from ctest 2.4.3...

Hope this helps,
David


On 10/25/06, Andy Cedilnik <andy.cedilnik at kitware.com> wrote:
> Hi Todd,
>
> Couple of things to try:
>
> 1. Remove the / at the end of localhost:8081
> 2. Verify that your project is in fact TestProject
> 3. Update to the latest CVS of CMake and try again.
>
>
> Andy
>
>  On 10/25/06, Todd Pitts <tapitts at sandia.gov> wrote:
> > Andy (and David),
> >
> >         I am glad to hear that you are using CTest with Dart2.  If I run
> CTest
> > with the --version flag I get: version 2.4-patch 3.  When I run ctest on
> > my test project I get:
> >
> > ....
> > 100% tests passed, 0 tests failed out of 1
> > Performing coverage
> > Cannot find any coverage files.
> > Submit files (using xmlrpc)
> >    Using XML-RPC submit method
> >    Submitting to:
> http://localhost:8081//TestProject/Command/
> > (TestProject)
> >    Submit file: /home/tapitts/Research/Lib/libsri-
> > build/Testing/20061025-1600/Build.xml
> > Submission problem: HTTP response: 403 (-504)
> >    Problems when submitting via XML-RPC
> > Errors while running CTest
> >
> > The URL is (hopefully) correct http://localhost:8081.  I have tried
> > using the fully qualified domain name of my system but I get the exact
> > same error.  The biggest problem is that HTTP response: 403 doesn't tell
> > me anything about how to troubleshoot.  I don't think I have a
> > permissions problem given the behavior of DartClient.jar and telnet.  Is
> > there any more information I could give that might be helpful? Perhaps
> > TestProject/Command/ (TestProject) is somehow wrong but I can't look at
> > it and see anything amiss.  You should know that the name of my project
> > is libsri (real project that I am using to test) but that I am trying to
> > submit it to TestProject because that is my initial test installation.
> > I took the successful DartClient.jar submission to mean that is not the
> > problem.  My CTestConfig.cmake is
> > SET (CTEST_PROJECT_NAME "TestProject")
> > SET (CTEST_NIGHTLY_START_TIME "22:00:00 MST")
> > SET (CTEST_DROP_METHOD xmlrpc)
> > SET (CTEST_DROP_SITE "http://localhost:8081/")
> > SET (CTEST_DROP_LOCATION "TestProject")
> > SET (CTEST_COMPRESS_SUBMISSION OFF)
> >
> >
> > My CMakeLists.txt is:
> >
> > # The name of our project is "LIBSRI".  CMakeLists files in this project
> > can
> > # refer to the root source directory of the project as
> > ${LIBSRI_SOURCE_DIR} and
> > # to the root binary directory of the project as ${LIBSRI_BINARY_DIR}.
> > project (LIBSRI)
> >
> > # Recurse into the "Src" and "Demo" subdirectories.  This does not
> > actually
> > # cause another cmake executable to run.  The same process will walk
> > through
> > # the project's entire directory structure.
> > add_subdirectory (Src)
> > add_subdirectory (Demo)
> > add_subdirectory (Tests)
> >
> > ENABLE_TESTING()
> > INCLUDE(CTest)
> >
> > ADD_TEST(SimpleTest
> ${LIBSRI_BINARY_DIR}/Tests/version-test Hello)
> >
> >
> > -Todd
> >
> >
> >
> > Thanks,
> >
> > -Todd
> >
> > On Wed, 2006-10-25 at 10:38 -0400, Andy Cedilnik wrote:
> > > Hello Todd,
> > >
> > > We have several dashboards that run using CTest and XML-RPC. When you
> > > run the CTest, is the XML-RPC URL in the output ok? Does it look like
> > > it should?
> > >
> > > Andy
> > >
> > > On 10/25/06, Todd Pitts <tapitts at sandia.gov> wrote:
> > >         Dan,
> > >
> > >                 Do you ever use CTest as a dart2 client?  I have not
> > >         been able to get
> > >         this working at all.  I can telnet to the port localhost:8081
> > >         just fine.
> > >         The java DartClient.jar client submits the xml files generated
> > >         by CTest
> > >         just fine.  However, the CTest client won't talk.  I have
> > >         tried HTTP and
> > >         XML-RPC methods - these are the only two useful ones for me.
> > >         DartServer.jar never says it has even been contacted by the
> > >         CTest
> > >         client.  In any event I am wondering if I am just using a
> > >         client that is
> > >         old and out of date.  Perhaps it will be discontinued and I
> > >         should leave
> > >         it along altogether? I could try and write something by hand
> > >         in python
> > >         that will submit the XML files generated by CTest or even
> > >         figure out how
> > >         to write the XML files myself but this begins to border on
> > >         building my
> > >         own testing harness framework which I would not like to do
> > >         (lots of work
> > >         you know ;).  Any thoughts?
> > >
> > >         -Todd
> > >
> > >
> > >         _______________________________________________
> > >         Dart mailing list
> > >         Dart at public.kitware.com
> > >         http://public.kitware.com/mailman/listinfo/dart
> > >
> > >
> > >
> > > --
> > > -------------------------------------------
> > > Andy Cedilnik
> > > Kitware Inc.
> > > http://www.kitware.com
> > > Phone: +1 518 371 3971 x110
> >
> >
> >
>
>
>
> --
> -------------------------------------------
>
> Andy Cedilnik
> Kitware Inc.
> http://www.kitware.com
> Phone: +1 518 371 3971 x110
> _______________________________________________
> Dart mailing list
> Dart at public.kitware.com
> http://public.kitware.com/mailman/listinfo/dart
>
>
>


More information about the Dart mailing list