<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. At the end of this script I submit a parallel job to run the tests. 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. 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 "${CTEST_BINARY_DIRECTORY}/CMakeCache.txt" "${CTEST_INITIAL_CACHE}")<BR>
FILE(MAKE_DIRECTORY "${CTEST_BINARY_DIRECTORY}/Testing/Notes")<BR>
<BR>
CTEST_START(${CTEST_BUILD_MODE})<BR>
FOREACH(update_dir ${CTEST_EXTRA_UPDATE_DIRECTORIES} ${CTEST_SOURCE_DIRECTORY})<BR>
CTEST_UPDATE(SOURCE ${update_dir})<BR>
ENDFOREACH(update_dir)<BR>
CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}")<BR>
CTEST_READ_CUSTOM_FILES("${CTEST_BINARY_DIRECTORY}") <I># Reads CTestCustom.ctest files<BR>
</I>CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}")<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 "${CTEST_BINARY_DIRECTORY}")<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'> create their own entry in the dashboard. The first one creates one that reports on the build but is missing the test information. The second one has the results of the test but has bogus information for the build. Does anyone know how to get the the second submit to simply add the test information to the existing build information? I tried simply removing the CTEST_START command from the test script, but in that case the submission fails outright. 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>
Start 1: QVTK-TestQtInitialization<BR>
1/1 Test #1: QVTK-TestQtInitialization ........ Passed 9.38 sec<BR>
<BR>
100% tests passed, 0 tests failed out of 1<BR>
<BR>
Total Test time (real) = 11.53 sec<BR>
Cannot create directory /Testing<BR>
Cannot open notes file<BR>
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>
Using HTTP submit method<BR>
Drop site:<a href="http://">http://</a><BR>
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>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <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>