2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-28 07:42:12 +00:00
Commit Graph

998 Commits

Author SHA1 Message Date
Raffi Enficiaud
48bcabbd37 JUnit default output stream
- string replacement function refactoring
- junit now determining the output stream based on available file
- junit does not replace existing file
2016-08-18 01:30:07 +02:00
Raffi Enficiaud
e3bb5bd056 Logger tests: overriding the output_stream_logger matching algorithm and changing the format of the messages sent by the framework
Rationale: being agnostic to the variable of the unit tests (time, file location)

- the output_test_stream now is being able to replace the content of the stream before it reached the matching algorithm
- several stream processing: file names (cross platform), execution time ... for removing the platform dependant log format
- additional cleanup and fixes for the JUnit implementation (all assertions are now properly logged and flushed at write time in the appropriate section of the file)
- now the framework emits warnings/errors that are signaled by "boost.test framework" instead of a file that is unknown from the user (+1 squashed commit)
2016-08-18 01:30:07 +02:00
Raffi Enficiaud
a7c3116882 Combined logger: CLA handling and stream/log level per formatter
- new CLA argument for being able to specify a logger with repetition, as well as its log level and stream
- the specification of the logger are: logger_name[:log_level[:log_sink]]
- empty token are kept: 'logger_name::' is a valid spec
- now being able to specify a stream per format: modification of the stream helper
- the output stream of a particular format now accepts the name of the stream instead of the name of the associated param on the command line
2016-08-18 01:30:07 +02:00
Raffi Enficiaud
f36bf2a1c0 Junit logger: integration into the set of loggers 2016-08-18 00:17:31 +02:00
Raffi Enficiaud
875dda8de7 JUnit logger: implementation
- Make JUnit logger discard the log levels to log all events
- Currently JUnit discards the file directory where the assertion is being logged
- Uses tree visitation at the end of the test suite in order to generate the log file
2016-08-18 00:17:31 +02:00
Raffi Enficiaud
2b09113c32 Multiple logger: entry in progress now being per logger as well
This is necessary since each logger may have a different log level
2016-08-18 00:17:27 +02:00
Raffi Enficiaud
579384afbe Multiple logger: now enabling a logger by its format 2016-08-18 00:16:06 +02:00
Raffi Enficiaud
e7f3e09a1a Multiple logger: breaking changes in the API in order to be able to add a logger per format on the fly
- in particular, changes the order of the formatter registration
- follow up unit tests changes wrt. breaking changes in the API
2016-08-18 00:14:23 +02:00
Raffi Enficiaud
9ffdf33dec Loggers: now handling abort signal as well 2016-08-17 23:38:33 +02:00
Raffi Enficiaud
e57629c02a Multiple loggers: having several loggers at the same time
- each formatter now indicates its default stream output (stderr/stdout/file)
- stream can now be set per logger formatter
- each logger is now capable of having its own log level
2016-08-17 23:38:33 +02:00
Raffi Enficiaud
686228e50d Algorithm: replace all strings with/out wildcards 2016-08-17 23:38:33 +02:00
Raffi Enficiaud
5eff15b039 output_test_stream: being able to override the match_pattern method by making it virtual (+ other functions) 2016-08-17 23:38:33 +02:00
Raffi Enficiaud
cb7b157a0b output_test_stream: improved messages on error
- improved diagnostic:
    * now prints a longer prefix/suffix and the position of the mismatch
    * continues the comparison in case of error rather than stopping and flushing the stream
- best substring matching in case of error for continuing the comparison of the strings/streams at the next location
- added algorithm for string replacement
2016-08-17 23:38:33 +02:00
Raffi Enficiaud
ea59e06c8c Framework: fixing the time associated to each test unit
- fixing doc mentioning the microseconds instead of milliseconds
- adding appropriate field in the result collector for proper tree visitation
2016-08-17 23:38:33 +02:00
Raffi Enficiaud
b5cb64b3f4 issues with VS placeholders 2016-08-11 23:23:53 +02:00
Raffi Enficiaud
e8521499fd Merge branch 'topic/trac-12103-gcc-bug-for-getchar' into next-internal
* topic/trac-12103-gcc-bug-for-getchar:
  Changelog
  Fix for uClibc and gcc <= 4.8.2

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2016-05-27 10:34:54 +02:00
Raffi Enficiaud
84ea93dbc6 Merge branch 'topic/trac-12024-nonexisting-__cxa_demangle-android' into next-internal
* topic/trac-12024-nonexisting-__cxa_demangle-android:
  Changelog
  Use boost/core/demangle instead of a direct GNU API use

# Conflicts:
#	doc/closing_chapters/change_log.qbk
#	include/boost/test/impl/execution_monitor.ipp
2016-05-27 10:33:27 +02:00
Raffi Enficiaud
31bebaf066 Merge branch 'topic/trac-11128-bb10-qnx-failures' into next-internal
* topic/trac-11128-bb10-qnx-failures:
  Changelog
  Add missing using for QNX

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2016-05-27 10:29:51 +02:00
Raffi Enficiaud
7221208094 Merge branch 'topic/PR99-fix-crashes-with-RTTI-off-on-MSVC' into next-internal
* topic/PR99-fix-crashes-with-RTTI-off-on-MSVC:
  Changelog
  Fix crashes with RTTI-off on MSVC

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2016-05-27 10:28:57 +02:00
Raffi Enficiaud
b7492a43cd Added documentation and change log 2016-05-27 09:55:28 +02:00
Jörg Böhme
933a71e37b Add missing using for QNX 2016-05-24 00:35:38 +02:00
wwinder
de5b4681dc Added 'BOOST_TEST_DISABLE_ALT_STACK' flag to use with ESXi build. 2016-05-24 00:13:03 +02:00
Marcel Raad
3348571908 Fix crashes with RTTI-off on MSVC
When RTTI is off on MSVC, BOOST_NO_TYPEID is not defined,
but only static typeid works. Dynamic typeid crashes at runtime.
2016-05-24 00:08:30 +02:00
Raffi Enficiaud
539b27a6aa Use boost/core/demangle instead of a direct GNU API use 2016-05-24 00:05:04 +02:00
Jörg Krause
1067fbe669 Fix for uClibc and gcc <= 4.8.2
getchar() is defined as a macro in uClibc. This hits gcc bug 58952 [1] for all
gcc version <= 4.8.2 and building boost/test fails:

./boost/test/impl/unit_test_main.ipp: In function 'int boost::unit_test::unit_test_main(boost::unit_test::init_unit_test_func, int, char**)':
./boost/test/impl/unit_test_main.ipp:194:18: error: expected unqualified-id before '(' token

To allow building boost/test with uClibc based toolchains with gcc <= 4.8.2 use
parenthesis for std::getchar.

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58952
2016-05-23 23:38:14 +02:00
Raffi Enficiaud
01dcf29337 Comment on the fix for maintenance 2016-03-27 21:01:22 +02:00
jzmaddock
c94ef6982e Fix for clang on windows
When I try to build with clang on windows (4.2.1 Compatible Clang 3.9.0 (trunk), on top of VC14) I get an error complaining that accessing "this" within an __except block is unimplemented.  This patch just stores the value in a local variable to make it available with the __finally clause.

Allows Boost.Test to be built with clang on windows, in VC compatibility mode.
2016-03-27 19:27:26 +01:00
Raffi Enficiaud
2c9fc467f0 MSVC12 fix: replacing broken std::is_copy_constructible by boost::is_copy_constructible 2016-03-20 19:27:46 +01:00
Raffi Enficiaud
c93edd16bc Fixing xvalue forwarding for grid and zip (sample merge operations)
- uses tuple_cat and decltype internally
- works as before in case of internal references
- constructs holder objects in terms of moveable only types: should improve the sharability of the holders in case of an object used multiple times
2016-03-19 08:34:32 +01:00
Raffi Enficiaud
97883a5d80 Merge branch 'topic/trac-11983-xml-escape-in-report' into develop 2016-02-20 11:00:50 +01:00
Raffi Enficiaud
bfaf02fa28 Merge branch 'topic/BOOST_DATA_TEST_CASE_F' into develop
Conflicts:
	doc/closing_chapters/change_log.qbk
2016-02-20 11:00:36 +01:00
Raffi Enficiaud
a7f2676dbf Fixing the escaping test unit names in the XML report
+ unit tests
2016-02-17 01:16:31 +01:00
Raffi Enficiaud
118c60643c Using a stronger random seed in case of seed=1 (time seed)
The time resolution is in seconds, which yields some issues in case two consecutive tests are ran fast one after the other.
2016-02-02 09:30:32 +01:00
Raffi Enficiaud
f99bcf95fb Ranked children should be initialized for consecutive run of the same test tree 2016-02-02 09:30:32 +01:00
Raffi Enficiaud
293f1520e4 Addressing random number generation issue 2016-02-02 09:30:32 +01:00
Gennadiy Rozental
261e376ed8 Introduce data test case with Fixtures 2016-02-01 22:41:36 -05:00
Raffi Enficiaud
618933d1e8 Merge branch 'topic/data-variadic-template' into develop
* topic/data-variadic-template:
  change log update
  Documentation on how to control the arity
  fixup test cases
  Making it truly variadic
  Fixing the arity problem of the dataset test cases
  new headers
  initial version

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2016-01-24 22:14:14 +01:00
Raffi Enficiaud
ac0f59f78d Merge branch 'topic/assert-printability' into develop
* topic/assert-printability:
  Static assert type support for operator<< to produce shorter error messages
2016-01-24 22:12:52 +01:00
Raffi Enficiaud
c65fdc5e55 Merge branch 'topic/trac-08905-ignores-return-value-from-WaitForSingleObject' into develop
* topic/trac-08905-ignores-return-value-from-WaitForSingleObject:
  Updating the changelog
  Closing the handles and the hkeys properly and testing the start of the debugger

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2016-01-24 22:12:21 +01:00
Raffi Enficiaud
8ed17b554d Making it truly variadic 2016-01-24 01:01:03 +01:00
Raffi Enficiaud
673c7aeb39 Fixing the arity problem of the dataset test cases 2016-01-24 01:01:03 +01:00
Gennadiy Rozental
8af0d71014 new headers 2016-01-24 01:01:03 +01:00
Gennadiy Rozental
42de00192e initial version 2016-01-24 01:01:03 +01:00
Raffi Enficiaud
a0cfbd0a2a Closing the handles and the hkeys properly and testing the start of the debugger 2016-01-21 13:19:04 +01:00
Gennadiy Rozental
ab083f9747 Static assert type support for operator<< to produce shorter error messages 2016-01-21 13:17:24 +01:00
Gennadiy Rozental
fd11b12dd6 Avoid two statements in tool evaluation 2016-01-21 13:14:55 +01:00
Raffi Enficiaud
37a1280bfd Merge branch 'topic/PR92-cosmetic-suppress-unused-parameter-warnings' into develop
* topic/PR92-cosmetic-suppress-unused-parameter-warnings:
  Suppress 'unused parameter' warnings.
2016-01-21 10:49:38 +01:00
Gennadiy Rozental
5a57a26a12 Merge pull request #91 from bebuch/develop
prevent unused warnings
2016-01-19 14:20:45 -05:00
Adam Wulkiewicz
81a1ec736b Suppress 'unused parameter' warnings. 2016-01-14 15:43:05 +01:00
Raffi Enficiaud
dfa71b3c89 Merge branch 'topic/6767-fenv-names-macros' into develop
* topic/6767-fenv-names-macros:
  Do not qualify <fenv.h> names that might be macros.
2015-12-22 07:44:14 +01:00