NA-MIC-kit-curriculum/Testing-Based Programming/How to send test results to the dashboard

From NAMIC Wiki
Jump to: navigation, search
Home < NA-MIC-kit-curriculum < Testing-Based Programming < How to send test results to the dashboard

In your top level directory, add a file called CTestConfig.cmake. An example, from the slicer build tree, looks like this:

 set(CTEST_PROJECT_NAME "Slicer3")
 set(CTEST_NIGHTLY_START_TIME "23:00:00 EDT")
 set(CTEST_DROP_METHOD "http")
 set(CTEST_DROP_SITE "www.cdash.org")
 set(CTEST_DROP_LOCATION "/CDash/submit.php?project=Slicer3")
 set(CTEST_DROP_SITE_CDASH TRUE)

If you reconfigure your project in CMake, you can build an "Experimental" submission of your test results to the CDash web site. To build an experimental submission, in MS Visual studio, right click on the "Experimental" project, and choose "Build". For linux, run "make Experimental".

 make Experimental

Need to set two variables in CMake. For windows, you can use the "Add entry" button. Here is an example of how I set these to build the plastimatch project.

 Name:         SITE
 Type:         String
 Value:        slumber.mgh
 Description:  (empty)
 Name:         BUILDNAME
 Type:         String
 Value:        Vista-msvc9-plastimatch-release
 Description:  (empty)

Now if you build experimental, the submission will be sent to the slicer dashboard, to the experimental section.

http://public.kitware.com/dashboard.php?name=slicer3

If you want to receive emails about build failures, you need to register with the dashboard. After you register, set your status as "Site Maintainer". This will allow you to claim your machines. To claim a machine, choose "My CDash", and then click the computer icon labeled "Claim sites"

If you want to move your builds to the Modules Experimental section, contact the web site administrator via the Slicer mailing list.