diff --git a/src/cpp_main.cpp b/src/cpp_main.cpp index 328bd864..f04be57f 100644 --- a/src/cpp_main.cpp +++ b/src/cpp_main.cpp @@ -1,12 +1,18 @@ -// Boost Test Library cpp_main.cpp ------------------------------------------// - -// (C) Copyright Beman Dawes 1995-2001. Gennadiy Rozental 2001-2202. +// (C) Copyright Gennadiy Rozental 2001-2002. +// (C) Copyright Beman Dawes 1995-2001. // Permission to copy, use, modify, sell and distribute this software is // granted provided this copyright notice appears in all copies. This software // is provided "as is" without express or implied warranty, and with no // claim as to its suitability for any purpose. // See http://www.boost.org for updates, documentation, and revision history. +// +// File : $RCSfile$ +// +// Version : $Id$ +// +// Description : main function implementation for Program Executon Monitor +// *************************************************************************** // LOCAL #include @@ -78,12 +84,20 @@ int main( int argc, char* argv[] ) //____________________________________________________________________________// -// Revision History -// 16 Nov 01 Minor message fix (Gennadiy) -// 4 Jun 01 Rewrite to use exception_monitor -// 26 Feb 01 Numerous changes suggested during formal review. -// 25 Jan 01 catch_exceptions.hpp code factored out. -// 22 Jan 01 Remove test_tools dependencies to reduce coupling. -// 5 Nov 00 Initial boost version (Beman Dawes) +// *************************************************************************** +// Revision History : +// +// $Log$ +// Revision 1.5 2002/08/20 08:24:13 rogeeff +// cvs keywords added +// +// 16 Nov 01 Minor message fix (Gennadiy) +// 4 Jun 01 Rewrite to use exception_monitor +// 26 Feb 01 Numerous changes suggested during formal review. +// 25 Jan 01 catch_exceptions.hpp code factored out. +// 22 Jan 01 Remove test_tools dependencies to reduce coupling. +// 5 Nov 00 Initial boost version (Beman Dawes) + +// *************************************************************************** // EOF diff --git a/src/execution_monitor.cpp b/src/execution_monitor.cpp index f2f6dcad..e7fb1747 100644 --- a/src/execution_monitor.cpp +++ b/src/execution_monitor.cpp @@ -1,6 +1,4 @@ -// Boost Test Library execution_monitor.cpp --------------------------------// - -// (C) Copyright Gennadiy Rozental 2001. +// (C) Copyright Gennadiy Rozental 2001-2002. // (C) Copyright Beman Dawes and Ullrich Koethe 1995-2001. // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all copies. @@ -8,12 +6,21 @@ // and with no claim as to its suitability for any purpose. // See http://www.boost.org for updates, documentation, and revision history. - +// +// File : $RCSfile$ +// +// Version : $Id$ +// +// Description : provides execution monitor implementation for all supported +// configurations, including Microsoft structured exception based, unix signals +// based and special workarounds for borland +// // Note that when testing requirements or user wishes preclude use of this // file as a separate compilation uses, it may be #included as a header file. - +// // Header dependencies are deliberately restricted to reduce coupling to other // boost libraries. +// *************************************************************************** // LOCAL #include @@ -232,7 +239,7 @@ extern "C" { static void execution_monitor_signal_handler( int sig ) { - siglongjmp(execution_monitor_jump_buffer(), sig ); + siglongjmp( execution_monitor_jump_buffer(), sig ); } } @@ -450,17 +457,24 @@ static void report_error( execution_exception::error_code ec, char const* msg1, } // namespace boost +// *************************************************************************** +// Revision History : +// +// $Log$ +// Revision 1.7 2002/08/20 08:24:13 rogeeff +// cvs keywords added +// +// 5 Oct 01 Slightly reworked: (Gennadiy Rozental) +// 5 Jun 01 Made SE code work with several Win32 compilers (Beman) +// 4 Jun 01 New interface to old code (was catch_exceptions.hpp) +// to avoid use of template as requested by users (Beman) +// 4 Apr 01 Added signal handling code. (Ullrich) +// 4 Apr 01 Removed default output at end of exception handling (Ullrich) +// 26 Feb 01 Numerous changes suggested during formal review (Beman) +// 25 Jan 01 catch_exceptions.hpp code factored out of cpp_main.cpp +// 22 Jan 01 Remove test_tools dependencies to reduce coupling +// 5 Nov 00 Initial boost version (Beman Dawes) -// Revision History -// 5 Oct 01 Slightly reworked: (Gennadiy Rozental) -// 5 Jun 01 Made SE code work with several Win32 compilers (Beman) -// 4 Jun 01 New interface to old code (was catch_exceptions.hpp) -// to avoid use of template as requested by users (Beman) -// 4 Apr 01 Added signal handling code. (Ullrich) -// 4 Apr 01 Removed default output at end of exception handling (Ullrich) -// 26 Feb 01 Numerous changes suggested during formal review (Beman) -// 25 Jan 01 catch_exceptions.hpp code factored out of cpp_main.cpp -// 22 Jan 01 Remove test_tools dependencies to reduce coupling -// 5 Nov 00 Initial boost version (Beman Dawes) +// *************************************************************************** // EOF diff --git a/src/test_main.cpp b/src/test_main.cpp index 876a87bd..bb7a7f87 100644 --- a/src/test_main.cpp +++ b/src/test_main.cpp @@ -1,11 +1,18 @@ -// test_main.cpp -----------------------------------------------------------// - -// (C) Copyright Beman Dawes 1995-2001. Permission to copy, use, modify, sell -// and distribute this software is granted provided this copyright notice -// appears in all copies. This software is provided "as is" without express or -// implied warranty, and with no claim as to its suitability for any purpose. +// (C) Copyright Gennadiy Rozental 2001-2002. +// (C) Copyright Beman Dawes 1995-2001. +// Permission to copy, use, modify, sell and distribute this software +// is granted provided this copyright notice appears in all copies. +// This software is provided "as is" without express or implied warranty, +// and with no claim as to its suitability for any purpose. // See http://www.boost.org for updates, documentation, and revision history. +// +// File : $RCSfile$ +// +// Version : $Id$ +// +// Description : implements main function for Test Execution Monitor. +// *************************************************************************** // LOCAL #include // for unit test framework @@ -76,12 +83,19 @@ int main( int argc, char* argv[] ) { ); } -// Revision History +// *************************************************************************** +// Revision History : +// +// $Log$ +// Revision 1.6 2002/08/20 08:24:13 rogeeff +// cvs keywords added +// +// 10 Apr 01 Use new unit_test log features (Ullrich) +// 8 Apr 01 Use boost/test/unit_test.hpp as framework. (Beman) +// 26 Feb 01 Numerous changes suggested during formal review. (Beman) +// 22 Jan 01 Use boost/cpp_main.hpp as framework. (Beman) +// 5 Nov 00 Initial boost version (Beman Dawes) -// 10 Apr 01 Use new unit_test log features (Ullrich) -// 8 Apr 01 Use boost/test/unit_test.hpp as framework. (Beman) -// 26 Feb 01 Numerous changes suggested during formal review. (Beman) -// 22 Jan 01 Use boost/cpp_main.hpp as framework. (Beman) -// 5 Nov 00 Initial boost version (Beman Dawes) +// *************************************************************************** // EOF diff --git a/src/test_tools.cpp b/src/test_tools.cpp index cf439abc..f3572905 100644 --- a/src/test_tools.cpp +++ b/src/test_tools.cpp @@ -3,8 +3,15 @@ // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied warranty, // and with no claim as to its suitability for any purpose. + +// See http://www.boost.org for updates, documentation, and revision history. // -// See http://www.boost.org for most recent version including documentation. +// File : $RCSfile$ +// +// Version : $Id$ +// +// Description : supplies offline implemtation for the Test Tools +// *************************************************************************** // LOCAL #include @@ -398,8 +405,16 @@ output_test_stream::sync() } // namespace boost -// Revision History -// ? ??? 01 Initial version (Ullrich Koethe) +// *************************************************************************** +// Revision History : +// +// $Log$ +// Revision 1.6 2002/08/20 08:24:13 rogeeff +// cvs keywords added +// // 5 Oct 01 Reworked version (Gennadiy Rozental) +// ? ??? 01 Initial version (Ullrich Koethe) + +// *************************************************************************** // EOF diff --git a/src/unit_test_log.cpp b/src/unit_test_log.cpp index 8ea4ba39..dfae62fe 100644 --- a/src/unit_test_log.cpp +++ b/src/unit_test_log.cpp @@ -3,8 +3,16 @@ // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied warranty, // and with no claim as to its suitability for any purpose. + +// See http://www.boost.org for updates, documentation, and revision history. // -// See http://www.boost.org for most recent version including documentation. +// File : $RCSfile$ +// +// Version : $Id$ +// +// Description : implemets Unit Test Log, Majority of implementation details +// are hidden in this file with use of pimpl idiom. +// *************************************************************************** // LOCAL #include @@ -29,7 +37,7 @@ namespace boost { namespace unit_test_framework { // ************************************************************************** // -// ************** log manipulators ************** // +// ************** unit_test_log ************** // // ************************************************************************** // struct unit_test_log::Impl { @@ -351,7 +359,15 @@ unit_test_log::start( unit_test_counter test_cases_amount, bool print_build_info } // namespace boost -// Revision History +// *************************************************************************** +// Revision History : +// +// $Log$ +// Revision 1.6 2002/08/20 08:24:13 rogeeff +// cvs keywords added +// // 5 Oct 01 Initial version (Gennadiy Rozental) +// *************************************************************************** + // EOF diff --git a/src/unit_test_main.cpp b/src/unit_test_main.cpp index f5279105..6f121141 100644 --- a/src/unit_test_main.cpp +++ b/src/unit_test_main.cpp @@ -3,8 +3,15 @@ // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied warranty, // and with no claim as to its suitability for any purpose. + +// See http://www.boost.org for updates, documentation, and revision history. // -// See http://www.boost.org for most recent version including documentation. +// File : $RCSfile$ +// +// Version : $Id$ +// +// Description : main function implementation for Unit Test Framework +// *************************************************************************** #include // for unit_test framework #include @@ -102,7 +109,15 @@ main( int argc, char* argv[] ) return no_result_code ? boost::exit_success : unit_test_result::instance().result_code(); } -// Revision History +// *************************************************************************** +// Revision History : +// +// $Log$ +// Revision 1.6 2002/08/20 08:24:13 rogeeff +// cvs keywords added +// // 5 Oct 01 Initial version (Gennadiy Rozental) +// *************************************************************************** + // EOF diff --git a/src/unit_test_monitor.cpp b/src/unit_test_monitor.cpp index 4a2ef5e5..25ca0811 100644 --- a/src/unit_test_monitor.cpp +++ b/src/unit_test_monitor.cpp @@ -1,10 +1,19 @@ -// (C) Copyright Ullrich Koethe 2001, Gennadiy Rozental 2001-2002. +// (C) Copyright Gennadiy Rozental 2001-2002. +// (C) Copyright Ullrich Koethe 2001. // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied warranty, // and with no claim as to its suitability for any purpose. + +// See http://www.boost.org for updates, documentation, and revision history. // -// See http://www.boost.org for most recent version including documentation. +// File : $RCSfile$ +// +// Version : $Id$ +// +// Description : implements specific subclass of Executon Monitor used by Unit +// Test Framework to monitor test cases run. +// *************************************************************************** // LOCAL #include @@ -77,7 +86,15 @@ unit_test_monitor::function() } // namespace boost -// Revision History +// *************************************************************************** +// Revision History : +// +// $Log$ +// Revision 1.4 2002/08/20 08:24:13 rogeeff +// cvs keywords added +// // 5 Oct 01 Initial version (Gennadiy Rozental) +// *************************************************************************** + // EOF diff --git a/src/unit_test_parameters.cpp b/src/unit_test_parameters.cpp index a46d5852..099cbc1d 100644 --- a/src/unit_test_parameters.cpp +++ b/src/unit_test_parameters.cpp @@ -1,10 +1,20 @@ -// (C) Copyright Gennadiy Rozental 2002. +// (C) Copyright Gennadiy Rozental 2001-2002. // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied warranty, // and with no claim as to its suitability for any purpose. + +// See http://www.boost.org for updates, documentation, and revision history. // -// See http://www.boost.org for most recent version including documentation. +// File : $RCSfile$ +// +// Version : $Id$ +// +// Description : simple implementation for Unit Test Framework parameter +// handling routines. May be rewritten in future to use some kind of +// command-line arguments parsing facility and environment variable handling +// facility +// *************************************************************************** // LOCAL #include @@ -73,7 +83,15 @@ retrieve_framework_parameter( char const* parameter_name, int* argc, char** argv } // namespace boost -// Revision History +// *************************************************************************** +// Revision History : +// +// $Log$ +// Revision 1.3 2002/08/20 08:24:13 rogeeff +// cvs keywords added +// // 26 Oct 01 Initial version (Gennadiy Rozental) +// *************************************************************************** + // EOF diff --git a/src/unit_test_result.cpp b/src/unit_test_result.cpp index b2ac5fcb..daf7f1d5 100644 --- a/src/unit_test_result.cpp +++ b/src/unit_test_result.cpp @@ -3,8 +3,16 @@ // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied warranty, // and with no claim as to its suitability for any purpose. + +// See http://www.boost.org for updates, documentation, and revision history. // -// See http://www.boost.org for most recent version including documentation. +// File : $RCSfile$ +// +// Version : $Id$ +// +// Description : implements Unit Test Result reporting facility. Note that majority of +// implementation is hidden in this file using pimple idiom. +// *************************************************************************** // LOCAL #include @@ -294,7 +302,15 @@ unit_test_result::result_code() } // namespace boost -// Revision History +// *************************************************************************** +// Revision History : +// +// $Log$ +// Revision 1.7 2002/08/20 08:24:13 rogeeff +// cvs keywords added +// // 5 Oct 01 Initial version (Gennadiy Rozental) +// *************************************************************************** + // EOF diff --git a/src/unit_test_suite.cpp b/src/unit_test_suite.cpp index faf26e3b..93d44b2c 100644 --- a/src/unit_test_suite.cpp +++ b/src/unit_test_suite.cpp @@ -3,8 +3,16 @@ // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied warranty, // and with no claim as to its suitability for any purpose. + +// See http://www.boost.org for updates, documentation, and revision history. // -// See http://www.boost.org for most recent version including documentation. +// File : $RCSfile$ +// +// Version : $Id$ +// +// Description : privide core implementation for Unit Test Framework. +// Extensions could be provided in separate files +// *************************************************************************** // LOCAL #include @@ -39,7 +47,7 @@ test_case::run() "\nEntering test " << (size() > 1 ? "suite" : "case") << " \"" << name << "\"" BOOST_TEST_SUITE_MESSAGE_END - // 2. Init test case + // 2. Initialize test case if( m_monitor_run ) { error_level_type init_result = detail::unit_test_monitor( *this, &test_case::do_init ).execute_and_translate( p_timeout ); @@ -70,7 +78,7 @@ test_case::run() unit_test_log::instance() << report_progress(); } - // 3. Deinit test case + // 3. Finalize test case if( is_initialized && !s_abort_testing ) { if( m_monitor_run ) { error_level_type destroy_result = @@ -183,7 +191,15 @@ test_suite::do_run() } // namespace boost -// Revision History +// *************************************************************************** +// Revision History : +// +// $Log$ +// Revision 1.4 2002/08/20 08:24:13 rogeeff +// cvs keywords added +// // 5 Oct 01 Initial version (Gennadiy Rozental) +// *************************************************************************** + // EOF