<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<BR><BR> Thanks for the reply.<BR> I had seen 'TAG' file but somehow thought that it is under every new directory created using timestamp (e.g. 20110104-2359/). So, I had started using below code. However, your solution looks more elegant, so will use it.<BR><BR>file(REMOVE_RECURSE ${CTEST_BINARY_DIRECTORY}/Testing/)<BR>FILE (GLOB_RECURSE item "${CTEST_BINARY_DIRECTORY}/Testing/Test.xml")<BR>FOREACH(filename ${item})<BR>...... use Test.xml ......<BR>ENDFOREACH(filename ${item})<BR><BR>Regards,<BR>Girish<BR><BR>--- On <B>Tue, 1/4/11, Tyler Roscoe <I><tyler@cryptio.net></I></B> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Tyler Roscoe <tyler@cryptio.net><BR>Subject: Re: [CMake] how to submit customized test report<BR>To: "girish hilage" <girish_hilage@yahoo.com><BR>Cc: "David Cole" <david.cole@kitware.com>, cmake@cmake.org<BR>Date: Tuesday, January 4, 2011, 4:59 PM<BR><BR>
<DIV class=plainMail>On Mon, Jan 03, 2011 at 05:48:13AM -0800, girish hilage wrote:<BR>> So, now I have to edit Test.xml generated by 'ctest' under directory : <BR>> /home/girish/project/trunk/Testing/20110103-1027/<BR>> <BR>> What I would like to know is, if there is any 'CTEST_' variable which would give me path of the Test.xml file that is generated by 'ctest'?<BR>> Or is there any variable which will give me 'Experimental tag' which is shown in the output (Use Experimental tag: 20110103-1027) if we give -VV option to ctest, so that I can construct path to Test.xml?<BR>> Or can we ask 'ctest' to generate Test.xml at some pre-specified path?<BR><BR>Not 100% certain of your problem, but I think you're looking for<BR>something like this:<BR><BR> # Start a new submission.<BR> ctest_start (${TP_DASHBOARD_MODEL})<BR> #
Calculate TP_CTEST_XML_DIR (which changes whenver ctest_start() is<BR> # called).<BR> file (READ "${CTEST_BINARY_DIRECTORY}/Testing/TAG" tag_file)<BR> string (REGEX MATCH "[^\n]*" xml_dir ${tag_file})<BR> set (TP_CTEST_XML_DIR "${CTEST_BINARY_DIRECTORY}/Testing/${xml_dir}")<BR><BR><BR>The idea for this comes from Clinton Stimpson. See also:<BR><A href="http://permalink.gmane.org/gmane.comp.programming.tools.cmake.user/27268" target=_blank>http://permalink.gmane.org/gmane.comp.programming.tools.cmake.user/27268</A><BR><BR>hth,<BR>tyler<BR></DIV></BLOCKQUOTE></td></tr></table><br>