2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-25 06:42:22 +00:00

cvs keywords added

[SVN r14981]
This commit is contained in:
Gennadiy Rozental
2002-08-20 08:24:13 +00:00
parent f1f68b2dae
commit c800fa7cab
10 changed files with 214 additions and 59 deletions

View File

@@ -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 <boost/test/execution_monitor.hpp>
@@ -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

View File

@@ -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 <boost/test/execution_monitor.hpp>
@@ -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

View File

@@ -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 <boost/test/unit_test.hpp> // 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

View File

@@ -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 <boost/test/test_tools.hpp>
@@ -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

View File

@@ -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 <boost/test/unit_test_log.hpp>
@@ -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

View File

@@ -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 <boost/test/unit_test.hpp> // for unit_test framework
#include <boost/test/unit_test_result.hpp>
@@ -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

View File

@@ -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 <boost/test/detail/unit_test_monitor.hpp>
@@ -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

View File

@@ -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 <boost/test/detail/unit_test_parameters.hpp>
@@ -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

View File

@@ -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 <boost/test/unit_test_result.hpp>
@@ -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

View File

@@ -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 <boost/test/unit_test_suite.hpp>
@@ -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