Re: [CMake] how to submit customized test report

2011-01-05 Thread girish hilage
Hi,

   Thanks for the reply.
   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.

file(REMOVE_RECURSE ${CTEST_BINARY_DIRECTORY}/Testing/)
FILE (GLOB_RECURSE item ${CTEST_BINARY_DIRECTORY}/Testing/Test.xml)
FOREACH(filename ${item})
.. use Test.xml ..
ENDFOREACH(filename ${item})

Regards,
Girish

--- On Tue, 1/4/11, Tyler Roscoe ty...@cryptio.net wrote:


From: Tyler Roscoe ty...@cryptio.net
Subject: Re: [CMake] how to submit customized test report
To: girish hilage girish_hil...@yahoo.com
Cc: David Cole david.c...@kitware.com, cmake@cmake.org
Date: Tuesday, January 4, 2011, 4:59 PM


On Mon, Jan 03, 2011 at 05:48:13AM -0800, girish hilage wrote:
    So, now I have to edit Test.xml generated by 'ctest' under directory : 
    /home/girish/project/trunk/Testing/20110103-1027/
 
    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'?
    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?
    Or can we ask 'ctest' to generate Test.xml at some pre-specified path?

Not 100% certain of your problem, but I think you're looking for
something like this:

    # Start a new submission.
    ctest_start (${TP_DASHBOARD_MODEL})
    # Calculate TP_CTEST_XML_DIR (which changes whenver ctest_start() is
    # called).
    file (READ ${CTEST_BINARY_DIRECTORY}/Testing/TAG tag_file)
    string (REGEX MATCH [^\n]* xml_dir ${tag_file})
    set (TP_CTEST_XML_DIR ${CTEST_BINARY_DIRECTORY}/Testing/${xml_dir})


The idea for this comes from Clinton Stimpson. See also:
http://permalink.gmane.org/gmane.comp.programming.tools.cmake.user/27268

hth,
tyler



  ___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] how to submit customized test report

2011-01-04 Thread Tyler Roscoe
On Mon, Jan 03, 2011 at 05:48:13AM -0800, girish hilage wrote:
    So, now I have to edit Test.xml generated by 'ctest' under directory : 
    /home/girish/project/trunk/Testing/20110103-1027/
 
    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'?
    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?
    Or can we ask 'ctest' to generate Test.xml at some pre-specified path?

Not 100% certain of your problem, but I think you're looking for
something like this:

# Start a new submission.
ctest_start (${TP_DASHBOARD_MODEL})
# Calculate TP_CTEST_XML_DIR (which changes whenver ctest_start() is
# called).
file (READ ${CTEST_BINARY_DIRECTORY}/Testing/TAG tag_file)
string (REGEX MATCH [^\n]* xml_dir ${tag_file})
set (TP_CTEST_XML_DIR ${CTEST_BINARY_DIRECTORY}/Testing/${xml_dir})


The idea for this comes from Clinton Stimpson. See also:
http://permalink.gmane.org/gmane.comp.programming.tools.cmake.user/27268

hth,
tyler
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] how to submit customized test report

2011-01-03 Thread David Cole
What is the contents of path_to_my_customizedTestReport.xml?

CDash only parses/recognizes the formats that ctest sends it. Is your file a
replacement for Test.xml? Or do you mean to send additional data beyond
what is found in Test.xml?

Have you looked at the examples and schema found here?
http://public.kitware.com/Wiki/CDash:XML


HTH,
David


On Mon, Jan 3, 2011 at 4:31 AM, girish hilage girish_hil...@yahoo.comwrote:

 Hi,

I have a query about submission of customized test report which I had
 posted as part of some other post to the mailing list.
For convenience I am posting only this specific query again.

ctest_submit() line in my script.cmake was as follows :
ctest_submit(FILES path_to_my_customizedTestReport.xml)

Even if this says Submission successful I can not see customized
 report on CDASH.

As above ctest_submit() did not work, I tried to put :
SET(CTEST_EXTRA_SUBMIT_FILES path_to_my_customizedTestReport.xml)
ctest_submit(PARTS ExtraFiles)

This also says Submission successful but I could not find how to see
 any extra file on CDASH.

Can you please let me know how :
1. to submit customized test report and
2. how to see extra submitted files on CDASH?

 Regards,
 Girish

 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the CMake FAQ at:
 http://www.cmake.org/Wiki/CMake_FAQ

 Follow this link to subscribe/unsubscribe:
 http://www.cmake.org/mailman/listinfo/cmake

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] how to submit customized test report

2011-01-03 Thread girish hilage
Hi,

   Got the problem.
   I was trying to submit an old Test.xml file generated from some previous run 
of ctest and was using it after adding few xml tags in it. It was in the same 
format required by cdash.
   But, as the file was old it had old value for 'BuildStamp', and hence it was 
submitting it to the old date which I was not browsing in CDASH.

   So, I am now able to submit my own file to CDASH.
   But, the requirement is that I need to add few more tests in the testlist in 
Test.xml and then submit it.
   So, now I have to edit Test.xml generated by 'ctest' under directory : 
   /home/girish/project/trunk/Testing/20110103-1027/

   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'?
   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?
   Or can we ask 'ctest' to generate Test.xml at some pre-specified path?

Regards,
Girish 

--- On Mon, 1/3/11, David Cole david.c...@kitware.com wrote:


From: David Cole david.c...@kitware.com
Subject: Re: [CMake] how to submit customized test report
To: girish hilage girish_hil...@yahoo.com
Cc: cmake@cmake.org
Date: Monday, January 3, 2011, 12:10 PM


What is the contents of path_to_my_customizedTestReport.xml?


CDash only parses/recognizes the formats that ctest sends it. Is your file a 
replacement for Test.xml? Or do you mean to send additional data beyond what 
is found in Test.xml?


Have you looked at the examples and schema found here?
http://public.kitware.com/Wiki/CDash:XML




HTH,
David




On Mon, Jan 3, 2011 at 4:31 AM, girish hilage girish_hil...@yahoo.com wrote:





Hi,

   I have a query about submission of customized test report which I had posted 
as part of some other post to the mailing list.
   For convenience I am posting only this specific query again.

   ctest_submit() line in my script.cmake was as follows :
   ctest_submit(FILES path_to_my_customizedTestReport.xml)

   Even if this says Submission successful I can not see customized report on 
CDASH.

   As above ctest_submit() did not work, I tried to put :
   SET(CTEST_EXTRA_SUBMIT_FILES path_to_my_customizedTestReport.xml)
   ctest_submit(PARTS ExtraFiles)

   This also says Submission successful but I could not find how to see any 
extra file on CDASH.

   Can you please let me know how :
   1. to submit customized test report and
   2. how to see extra submitted files on CDASH?

Regards,
Girish

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake




  ___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake