Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83585 - in trunk/tools/regression: src/report xsl_reports
From: steven_at_[hidden]
Date: 2013-03-26 11:51:37


Author: steven_watanabe
Date: 2013-03-26 11:51:36 EDT (Tue, 26 Mar 2013)
New Revision: 83585
URL: http://svn.boost.org/trac/boost/changeset/83585

Log:
Pass the comment file as a parameter instead of hard-coding comment.html.
Text files modified:
   trunk/tools/regression/src/report/boost_report.cpp | 5 +++--
   trunk/tools/regression/xsl_reports/boost_wide_report.py | 1 +
   2 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/tools/regression/src/report/boost_report.cpp
==============================================================================
--- trunk/tools/regression/src/report/boost_report.cpp (original)
+++ trunk/tools/regression/src/report/boost_report.cpp 2013-03-26 11:51:36 EDT (Tue, 26 Mar 2013)
@@ -43,6 +43,7 @@
         ("run-date", boost::program_options::value<boost::posix_time::ptime>()->default_value(boost::posix_time::second_clock::universal_time()), "the timestamp of the report")
         ("reports,r", boost::program_options::value<std::vector<std::string> >(), "The reports to generate")
         ("css", boost::program_options::value<std::string>(), "The CSS file")
+ ("comment", boost::program_options::value<std::string>()->required(), "The report comment file")
         ("help,h", "produce a help message")
         ;
 
@@ -116,7 +117,7 @@
         BOOST_FOREACH(const std::string& mode, modes) {
             if(reports.count(mode.substr(0, 1) + "d"))
                 result_page(structure, markup,
- false, tag, now, warnings, mode, "comment.html");
+ false, tag, now, warnings, mode, vm["comment"].as<std::string>());
         }
 
         BOOST_FOREACH(const std::string& mode, modes) {
@@ -128,7 +129,7 @@
         BOOST_FOREACH(const std::string& mode, modes) {
             if(reports.count(mode.substr(0, 1) + "dr"))
                 result_page(structure, markup,
- true, tag, now, warnings, mode, "comment.html");
+ true, tag, now, warnings, mode, vm["comment"].as<std::string>());
         }
 
         BOOST_FOREACH(const std::string& mode, modes) {

Modified: trunk/tools/regression/xsl_reports/boost_wide_report.py
==============================================================================
--- trunk/tools/regression/xsl_reports/boost_wide_report.py (original)
+++ trunk/tools/regression/xsl_reports/boost_wide_report.py 2013-03-26 11:51:36 EDT (Tue, 26 Mar 2013)
@@ -511,6 +511,7 @@
         command_line = report_executable
         command_line += " --expected " + '"%s"' % expected_results_file
         command_line += " --markup " + '"%s"' % failures_markup_file
+ command_line += " --comment " + '"%s"' % comment_file
         command_line += " --tag " + tag
         # command_line += " --run-date " + '"%s"' % run_date
         command_line += " -rl"


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk