<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:471874401;
        mso-list-type:hybrid;
        mso-list-template-ids:1250857924 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>My CTestConfig.txt file currently uses
CTEST_COMMAND and CTEST_CMAKE_COMMAND to drive the dashboard builds.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>SET(CTEST_COMMAND "ctest -D
${CTEST_SCRIPT_ARG}Start -D ${CTEST_SCRIPT_ARG}Update -D
${CTEST_SCRIPT_ARG}Configure -D ${CTEST_SCRIPT_AR\<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>G}Build -D ${CTEST_SCRIPT_ARG}Test -D
${CTEST_SCRIPT_ARG}Coverage -D ${CTEST_SCRIPT_ARG}Submit --track
${CTEST_SCRIPT_ARG} -A $ENV{PWD\<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>}/notes.txt")<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>SET(CTEST_CMAKE_COMMAND "cmake -G
\"$ENV{DECARTA_GENERATOR}\" -DDECARTA_AUTOMATED:STRING=1
-DDECARTA_TEST_ENABLED:STRING=1 -DDASHBOARD\<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>_TYPE:STRING=${CTEST_SCRIPT_ARG}
-DCMAKE_BUILD_TYPE:STRING=$ENV{CMAKE_BUILD_TYPE}
-DDECARTA_LIBRARY_TYPE:STRING=$ENV{DECARTA_LIBRARY_T\<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>YPE}")<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>It appears that to use subprojects and
partial submits I need to use the “new” style of ctest –S script
which would look something like this:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>CTEST_START(${CTEST_SCRIPT_ARG})<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>CTEST_UPDATE(SOURCE
"${CTEST_SOURCE_DIRECTORY}")<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>CTEST_SUBMIT(PARTS Update
Notes)<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>CTEST_CONFIGURE(BUILD
"${CTEST_BINARY_DIRECTORY}" APPEND <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> OPTIONS
"-DCTEST_USE_LAUNCHERS=${CTEST_USE_LAUNCHERS}"<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>)<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>CTEST_SUBMIT(PARTS
Configure)<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>CTEST_BUILD(BUILD
"${CTEST_BINARY_DIRECTORY}")<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>CTEST_SUBMIT(PARTS Build)<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>foreach(subproject
${CTEST_PROJECT_SUBPROJECTS})<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> set_property(GLOBAL
PROPERTY SubProject ${subproject})<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> set_property(GLOBAL
PROPERTY Label ${subproject})<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> ctest_test(BUILD
"$CTEST_BINARY_DIRECTORY" INCLUDE_LABEL ${subproject})<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> ctest_submit(PARTS
TEST)<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>endforeach()<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Both style of scripts are executed using: ctest –S CTestConfig.cmake,
Experimental –VV<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'><span
style='mso-list:Ignore'>1)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'> </span></font></span></span></font><![endif]>I
need to be able to pass the same flags to cmake as with the old script (as
shown above). Is there a way to do that with the new style of the script? <o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'><span
style='mso-list:Ignore'>2)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'> </span></font></span></span></font><![endif]> If
I use the new style of commands and put them in the CTestConfig.cmake file (to
replace CTEST_COMMAND and CTEST_CMAKE_COMMAND) , it really confuses CTest which
appears to read the CTestConfig.cmake file over and over again. So does
that mean that these new style of commands cannot be put in a CTestConfig.cmake
file but need to be put in some other .cmake file? I couldn’t find
any documentation on this. <o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'><span
style='mso-list:Ignore'>3)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'> </span></font></span></span></font><![endif]>This
leads me to my 3<sup>rd</sup> question: which is: What is the difference
between CTestConfig.cmake and some other .cmake file that is passed to ctest –S?<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.25in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.25in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Thanks.<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.25in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Neelima<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.25in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> ceej@lambda.nu
[mailto:ceej@lambda.nu] <b><span style='font-weight:bold'>On Behalf Of </span></b>Chris
Hillery<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, August 31, 2010 10:07
PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Neelima
Mehdiratta</st1:PersonName><br>
<b><span style='font-weight:bold'>Cc:</span></b> cmake@cmake.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [CMake] Categorizing
test results displayed via CDash</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Check out this article:<br>
<br>
<a href="http://www.kitware.com/blog/home/post/11">http://www.kitware.com/blog/home/post/11</a><br>
<br>
and read the article in the Kitware Quarterly that is linked to from there on
"CDash subprojects".<br>
<br>
It's not nearly as clean and straightforward as it should be, IMHO, but it does
work.<br>
<br>
Ceej<br>
aka Chris Hillery<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Tue, Aug 31, 2010 at 9:00 PM, <st1:PersonName w:st="on">Neelima
Mehdiratta</st1:PersonName> <<a href="mailto:nmehdiratta@decarta.com">nmehdiratta@decarta.com</a>>
wrote:<o:p></o:p></span></font></p>
<div link=blue vlink=purple>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I am writing
unit tests for our software using the Google test framework. There is
only one CMakeLists.txt file at the top-level of the unit test hierarchy, which
creates one executable that runs all the tests. I'm using CTest to run
the tests and display the results via CDash. The unit tests test several
software modules and I would like to display the results categorized according
to the modules, via CDash. The structure of the unit test code is as
follows:</span></font><o:p></o:p></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Root (test)
directory which has the CMakeLists.txt file, test code common to all
tests and several directories (one for each module that needs to be tested).
These directories contain only the unit test code, but no CMakeLists.txt
files. Currently I can only get a flat structure (a single list of the
test results) displayed via CDash (by using an ADD_TEST() line per test).
This list would become really long over time and developers would mostly be
interested in specific modules. Is there a way to display the tests results
categorized by the module being tested, via CDash?</span></font><o:p></o:p></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> Thanks.</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>
</div>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>