[cmake-developers] I'm looking for help to generate a txt file result after several tests
mohamed sahraoui
m.sahraoui at hotmail.fr
Mon Oct 10 09:50:14 EDT 2011
Hi ,
I would like to generate a txt report including
various informations produced by each test execution.
my ideas was in a second step to post this cover test onto a cdash portal.
My CMakeLists.txt produce a well formed CTestTestfile.cmake file with the following a classical structure :
ADD_TEST(Phase1_oconnell "bin/Linux/toulbar2" "/home/validation/default/oconnell.wcsp" "-B=0" "-v" "-e:")
SET_TESTS_PROPERTIES(Phase1_oconnell PROPERTIES PASS_REGULAR_EXPRESSION "Optimum: " TIMEOUT "100")
i would like to catch the stdout line produced by the test execution
the standard output print :
=================
....
Optimum: 328 in 15 backtracks and 15 nodes and 0 seconds.
end.
=================
how can i do to respectively catch foreach test the following informations ;
${Optimum}
${backtracks}
${nodes}
${seconds}
my ideas is generate a csv files and post it on the dashboard after post processing.
report exemple : cat report.txt
test;optimum;backtracks;nodes;seconds;
Phase1_oconnell;328;15;15;0;
thanks ,
sincerely Mohamed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20111010/4f5bcc13/attachment.htm>
More information about the cmake-developers
mailing list