| 
									
										
										
										
											2012-02-15 08:20:06 +00:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  *  Created by Phil on 14/02/2012. | 
					
						
							|  |  |  |  *  Copyright 2012 Two Blue Cubes Ltd. All rights reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *  Distributed under the Boost Software License, Version 1.0. (See accompanying | 
					
						
							|  |  |  |  *  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define CATCH_CONFIG_MAIN
 | 
					
						
							|  |  |  | #include "catch_self_test.hpp"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-04 07:55:11 +01:00
										 |  |  | namespace Catch{ | 
					
						
							|  |  |  |      | 
					
						
							| 
									
										
										
										
											2012-12-01 09:13:36 +00:00
										 |  |  |     NullStreamingReporter::~NullStreamingReporter() {} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-01-13 21:51:44 +00:00
										 |  |  |     Totals EmbeddedRunner::runMatching( const std::string& rawTestSpec, std::size_t groupIndex, std::size_t groupsCount, const std::string& ) { | 
					
						
							| 
									
										
										
										
											2012-02-15 08:20:06 +00:00
										 |  |  |         std::ostringstream oss; | 
					
						
							|  |  |  |         Config config; | 
					
						
							|  |  |  |         config.setStreamBuf( oss.rdbuf() ); | 
					
						
							| 
									
										
										
										
											2012-05-04 07:55:11 +01:00
										 |  |  |          | 
					
						
							| 
									
										
										
										
											2012-08-15 19:12:51 +01:00
										 |  |  |         Totals totals; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-15 08:20:06 +00:00
										 |  |  |         // Scoped because Runner doesn't report EndTesting until its destructor
 | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2012-12-01 09:13:36 +00:00
										 |  |  |             Runner runner( config, m_reporter.get() ); | 
					
						
							| 
									
										
										
										
											2013-01-13 21:51:44 +00:00
										 |  |  |             totals = runner.runMatching( rawTestSpec, groupIndex, groupsCount ); | 
					
						
							| 
									
										
										
										
											2012-02-15 08:20:06 +00:00
										 |  |  |         } | 
					
						
							| 
									
										
										
										
											2012-08-15 19:12:51 +01:00
										 |  |  |         return totals; | 
					
						
							| 
									
										
										
										
											2012-02-15 08:20:06 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2012-05-04 07:55:11 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-15 18:36:36 +00:00
										 |  |  | } |