|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83657 - trunk/tools/regression/src/report
From: steven_at_[hidden]
Date: 2013-03-30 18:56:24
Author: steven_watanabe
Date: 2013-03-30 18:56:23 EDT (Sat, 30 Mar 2013)
New Revision: 83657
URL: http://svn.boost.org/trac/boost/changeset/83657
Log:
Sort the input to make the output more consistent.
Text files modified:
trunk/tools/regression/src/report/boost_report.cpp | 5 ++++-
trunk/tools/regression/src/report/xml.hpp | 4 ++--
2 files changed, 6 insertions(+), 3 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-30 18:56:23 EDT (Sat, 30 Mar 2013)
@@ -25,6 +25,7 @@
#include <boost/exception/exception.hpp>
#include <boost/exception/diagnostic_information.hpp>
#include <boost/program_options.hpp>
+#include <boost/range/algorithm/sort.hpp>
#include <iostream>
#include <fstream>
@@ -83,7 +84,9 @@
global_zip.reset(new boost::zip::zip_archive(zip_file));
if(vm.count("input-file")) {
- BOOST_FOREACH(const std::string& file, vm["input-file"].as<std::vector<std::string> >()) {
+ std::vector<std::string> input_files = vm["input-file"].as<std::vector<std::string> >();
+ boost::sort(input_files);
+ BOOST_FOREACH(const std::string& file, input_files) {
boost::shared_ptr<document_type> test_results;
try {
std::cout << "Reading " << file << std::endl;
Modified: trunk/tools/regression/src/report/xml.hpp
==============================================================================
--- trunk/tools/regression/src/report/xml.hpp (original)
+++ trunk/tools/regression/src/report/xml.hpp 2013-03-30 18:56:23 EDT (Sat, 30 Mar 2013)
@@ -83,8 +83,8 @@
std::vector<note_t> notes;
};
typedef std::vector<test_log_t> test_case_t;
- typedef boost::unordered_map<std::string, test_case_t> library_t;
- typedef boost::unordered_map<std::string, library_t> toolset_t;
+ typedef std::map<std::string, test_case_t> library_t;
+ typedef std::map<std::string, library_t> toolset_t;
typedef std::map<std::string, toolset_t> toolset_group_t;
struct run_t {
std::string runner;
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