|
Boost-Commit : |
From: bdawes_at_[hidden]
Date: 2007-10-16 18:05:29
Author: bemandawes
Date: 2007-10-16 18:05:29 EDT (Tue, 16 Oct 2007)
New Revision: 40099
URL: http://svn.boost.org/trac/boost/changeset/40099
Log:
Add failure count for each compiler column.
Text files modified:
trunk/tools/regression/src/compiler_status.cpp | 28 ++++++++++++++++++++++++----
1 files changed, 24 insertions(+), 4 deletions(-)
Modified: trunk/tools/regression/src/compiler_status.cpp
==============================================================================
--- trunk/tools/regression/src/compiler_status.cpp (original)
+++ trunk/tools/regression/src/compiler_status.cpp 2007-10-16 18:05:29 EDT (Tue, 16 Oct 2007)
@@ -87,6 +87,8 @@
const string empty_string;
+ std::vector<int> error_count;
+
// prefix for library and test hyperlink prefix
string cvs_root ( "http://boost.cvs.sourceforge.net/" );
string url_prefix_dir_view( cvs_root + "boost/boost" );
@@ -526,7 +528,9 @@
// do_cell ---------------------------------------------------------------//
- bool do_cell( const string & lib_name,
+ bool do_cell(
+ int compiler,
+ const string & lib_name,
const fs::path & test_dir,
const string & test_type,
const string & test_name,
@@ -644,6 +648,8 @@
}
}
}
+
+ if ( !pass ) ++error_count[compiler];
target += "</td>";
return (anything_generated != 0) || !pass;
@@ -695,10 +701,11 @@
// for each compiler, generate <td>...</td> html
bool anything_to_report = false;
+ int compiler = 0;
for ( std::vector<string>::const_iterator itr=toolsets.begin();
- itr != toolsets.end(); ++itr )
+ itr != toolsets.end(); ++itr, ++compiler )
{
- anything_to_report |= do_cell( lib_name, test_dir, test_type, test_name, *itr, target,
+ anything_to_report |= do_cell( compiler, lib_name, test_dir, test_type, test_name, *itr, target,
always_show_run_output );
}
@@ -816,6 +823,7 @@
<< (desc.size() ? desc : compiler_itr->leaf())
<< (vers.size() ? (string( "<br>" ) + vers ) : string( "" ))
<< "</td>\n";
+ error_count.push_back( 0 );
}
}
}
@@ -826,7 +834,19 @@
do_table_body( bin_path );
- report << "</table>\n";
+ // error total row
+
+ report << "<tr> <td> </td><td>Number of Failures</td><td> </td>\n";
+
+ // for each compiler, generate <td>...</td> html
+ int compiler = 0;
+ for ( std::vector<string>::const_iterator itr=toolsets.begin();
+ itr != toolsets.end(); ++itr, ++compiler )
+ {
+ report << "<td align=\"center\">" << error_count[compiler] << "</td>\n";
+ }
+
+ report << "</tr>\n</table>\n";
}
} // unnamed namespace
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