<HTML>
<HEAD>
<TITLE>Submitting build and test results to dashboard separately</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I am setting up a ParaView dashboard for a cluster in which I have to compile on one computer and then submit a job to run parallel tests on another computer. This means I have to run one dashboard script to update and build the code. &nbsp;At the end of this script I submit a parallel job to run the tests. &nbsp;The problem I am having is that I cannot seem to submit the results to the dashboard in such a way that I get both the build and test information on the same entry.<BR>
<BR>
My current configuration is as follows. &nbsp;To update, configure, and build the latest version I have a CTest script like the following:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>-<I>Setup CMake variables-<BR>
</I></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
#<I> Clear out binary directory and set defaults.<BR>
</I>CTEST_EMPTY_BINARY_DIRECTORY(${CTEST_BINARY_DIRECTORY})<BR>
FILE(WRITE &quot;${CTEST_BINARY_DIRECTORY}/CMakeCache.txt&quot; &quot;${CTEST_INITIAL_CACHE}&quot;)<BR>
FILE(MAKE_DIRECTORY &quot;${CTEST_BINARY_DIRECTORY}/Testing/Notes&quot;)<BR>
<BR>
CTEST_START(${CTEST_BUILD_MODE})<BR>
FOREACH(update_dir ${CTEST_EXTRA_UPDATE_DIRECTORIES} ${CTEST_SOURCE_DIRECTORY})<BR>
&nbsp;&nbsp;CTEST_UPDATE(SOURCE ${update_dir})<BR>
ENDFOREACH(update_dir)<BR>
CTEST_CONFIGURE(BUILD &quot;${CTEST_BINARY_DIRECTORY}&quot;)<BR>
CTEST_READ_CUSTOM_FILES(&quot;${CTEST_BINARY_DIRECTORY}&quot;) <I># Reads CTestCustom.ctest files<BR>
</I>CTEST_BUILD(BUILD &quot;${CTEST_BINARY_DIRECTORY}&quot;)<BR>
CTEST_SUBMIT()<BR>
<BR>
-</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><I>Submit parallel test job-<BR>
</I></SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
When the parallel test job runs, it executes this script.<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>-<I>Setup CMake variables-<BR>
</I></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
CTEST_START(${CTEST_BUILD_MODE})<BR>
CTEST_TEST(BUILD &quot;${CTEST_BINARY_DIRECTORY}&quot;)<BR>
CTEST_SUBMIT()<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
I am sure that the CMake variables are setup the same in both the build and test scripts; I am actually using the same script to setup both.<BR>
<BR>
Now here is the problem: each of the </SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>CTEST_SUBMIT()</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> &nbsp;create their own entry in the dashboard. &nbsp;The first one creates one that reports on the build but is missing the test information. &nbsp;The second one has the results of the test but has bogus information for the build. &nbsp;Does anyone know how to get the the second submit to simply add the test information to the existing build information? &nbsp;I tried simply removing the CTEST_START command from the test script, but in that case the submission fails outright. &nbsp;I get output like the following:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>Test project /home/kmorel/dashboard/builds/ParaView3Experimental<BR>
Cannot create directory /Testing/Temporary<BR>
Cannot create log file: LastTest.log<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Start 1: QVTK-TestQtInitialization<BR>
1/1 Test #1: QVTK-TestQtInitialization ........ &nbsp;&nbsp;Passed &nbsp;&nbsp;&nbsp;9.38 sec<BR>
<BR>
100% tests passed, 0 tests failed out of 1<BR>
<BR>
Total Test time (real) = &nbsp;11.53 sec<BR>
Cannot create directory /Testing<BR>
Cannot open notes file<BR>
&nbsp;&nbsp;&nbsp;Use HTTP Proxy: wwwproxy.sandia.gov:80<BR>
Cannot create directory /Testing/Temporary<BR>
Cannot create log file: LastSubmit.log<BR>
Submit files (using http)<BR>
&nbsp;&nbsp;&nbsp;Using HTTP submit method<BR>
&nbsp;&nbsp;&nbsp;Drop site:<a href="http://">http://</a><BR>
&nbsp;&nbsp;&nbsp;Submission successful<BR>
Error in read script: /home/kmorel/dashboard/scripts/ParaView3Experimental.cmake<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
Any ideas?<BR>
<BR>
-Ken<BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>