2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-27 19:32:11 +00:00
Commit Graph

1053 Commits

Author SHA1 Message Date
Raffi Enficiaud
88b3854513 JUnit: refactoring for handling the different phases in an easier way
- adding the global messages as a global sysout/syserr
- detecting/parsing better the skipped tests
2017-03-05 20:13:40 +01:00
Raffi Enficiaud
e02d6b6758 JUnit: being able to indicate the log level for speeding up
- junit internal log level to be able to intercept all the intermediate messages (tu enter/exit)
- skipping events that do not match the desired log level
- some refactoring (root of the subtree, getter of the current log)
- logs that do not belong to any TU go to a global log

TODO: global log should be outputted to the stream as well
2017-03-01 23:51:20 +01:00
Raffi Enficiaud
7b49db460e Using lists for the output streams 2017-03-01 09:15:09 +01:00
Raffi Enficiaud
c1592debe5 Lowering JUnit output memory footprint 2017-03-01 08:59:09 +01:00
Raffi Enficiaud
1bb72301c2 Merge branch 'topic/12748-VERSION-macro-clashes' into next-internal
* topic/12748-VERSION-macro-clashes:
  Fix tests issues
  Change log update
  Change some capital variable names to lowercase

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2017-02-15 09:56:55 +01:00
Raffi Enficiaud
5ff98ad58e Merge branch 'topic/PR107-BOOST_NO_EXCEPTIONS-typos' into next-internal
* topic/PR107-BOOST_NO_EXCEPTIONS-typos:
  Change log update
  Fix typo

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2017-02-15 09:55:55 +01:00
Raffi Enficiaud
243542f9e2 Merge branch 'topic/12778-nullptr' into next-internal
* topic/12778-nullptr:
  Change log update
  nullptr support in the test tools + test

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2017-02-15 09:54:49 +01:00
equal-l2
081a1dd3ef Fix typo 2017-02-15 09:22:35 +01:00
Raffi Enficiaud
229e71199c nullptr support in the test tools + test 2017-02-15 09:21:42 +01:00
Raffi Enficiaud
bc427731cc Fix tests issues 2017-02-15 09:21:29 +01:00
Adam Majer
20bcf731e2 Change some capital variable names to lowercase
Addresses issue 12748.
Now potential clashing variable name used in runtime parameters are lowercase and prepended with "btrt_".
2017-02-15 09:21:29 +01:00
Raffi Enficiaud
a7d1c889c9 Fix using __COUNTER__ when available 2017-02-15 09:21:16 +01:00
Raffi Enficiaud
98b0ef4ec0 Inspect tool honouring no hard tabs 2016-11-18 13:53:39 +01:00
Raffi Enficiaud
99c291b916 Merge branch 'topic/12530-add-version-to-cli' into next-internal
* topic/12530-add-version-to-cli:
  Change log
  Boost.Test learned the '--version' command line argument

# Conflicts:
#	doc/closing_chapters/change_log.qbk
#	test/Jamfile.v2
2016-11-16 21:06:17 +01:00
Raffi Enficiaud
21a333aa07 Merge branch 'topic/12531-run-test-with-colons' into next-internal
* topic/12531-run-test-with-colons:
  Bugfix token iterator ctor
  Merging tokens that start with \ or / with previous tokens
2016-11-16 21:04:36 +01:00
Raffi Enficiaud
99422b5aed Merge branch 'bug/log-sink-token-can-use-colon' into topic/12531-run-test-with-colons
* bug/log-sink-token-can-use-colon:
  Bugfix token iterator ctor
  Merging tokens that start with \ or / with previous tokens
2016-11-11 16:12:50 +01:00
Raffi Enficiaud
87c089db61 Bugfix token iterator ctor 2016-11-11 16:12:25 +01:00
Raffi Enficiaud
123366c033 Merging tokens that start with \ or / with previous tokens 2016-11-11 16:12:25 +01:00
Raffi Enficiaud
86bcffea6d Boost.Test learned the '--version' command line argument
- added '--version' that prints information equivalent to "--build_info" and then exits
- prints the Boost.Test variant in use
- moved the definition of the BOOST_TEST_INCLUDED macro on the top of the files such that CLA can safely print the Boost.Test variant in use
- added smoke test
- Module name printing should use BOOST_TEST_MODULE (and not BOOST_TEST_MAIN): adding compilation check
2016-11-09 08:46:13 +01:00
Raffi Enficiaud
815c0963f1 Merge branch 'topic/11907-string-as-collection-error' into next-internal
* topic/11907-string-as-collection-error:
  Change log and doc update
  String comparison can now be used with BOOST_TEST additional compare options
  Making std::string compatible with string comparison backend

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2016-11-08 10:47:50 +01:00
Raffi Enficiaud
15e84d93db Merge branch 'topic/12339-remove-blinking-from-color-output' into next-internal
* topic/12339-remove-blinking-from-color-output:
  Change log
  Now underlining the fatal errors instead of blinking
2016-11-08 10:45:51 +01:00
Raffi Enficiaud
a83817def5 Cleaning names with colons and fixing the proper demangling on all platforms
- replacing colons with underscores in the names cleaning
- names generated by template elements were not properly demangled in all platforms: using now the boost.core demangling functions  (same as execution monitor)
- adding smoke tests and changing existing ones accordingly
2016-11-02 22:14:54 +01:00
Raffi Enficiaud
923a84a2dd String comparison can now be used with BOOST_TEST additional compare options
- enabling modifiers per_element and lexicographic for strings
2016-11-02 22:03:19 +01:00
Raffi Enficiaud
3983783ecc Making std::string compatible with string comparison backend
- promoting std::string as a type convertible to basic_cstring
- changing the string comparison operator to account for basic_cstring convertible elements
- avoiding basic_cstring convertible elemets in collection comparison
- additional checks of the use of the adequate string comparator
- declaring string as a sequence for non C++11 compilers
2016-11-02 22:02:39 +01:00
Raffi Enficiaud
c843e26bc6 Now underlining the fatal errors instead of blinking 2016-11-01 19:36:27 +01:00
Raffi Enficiaud
cbbacca130 Merge branch 'topic/11756-floatingpoint-exception-macros' into next-internal
* topic/11756-floatingpoint-exception-macros:
  Some cleanup on the fpe symbols
  Updated change log
  trac 11756: fix usage of floating point exception macros

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2016-10-31 23:20:29 +01:00
Raffi Enficiaud
bb5fd50d03 Some cleanup on the fpe symbols 2016-10-31 19:54:21 +01:00
Raffi Enficiaud
75242f64c8 Merge branch 'PR/remove-gcc6-warnings' into next-internal
* PR/remove-gcc6-warnings:
  Change log update
  Fix unused parameter warnings/errors with gcc 6.
  Syntactic change silences latest gcc warnings about confusing 'if' statements.
2016-10-31 17:14:32 +01:00
Raffi Enficiaud
5ecc03c409 Bug fix default argument 2016-10-31 17:03:50 +01:00
Raffi Enficiaud
ea7d1be4f5 Bugfix: cast to wrong type 2016-10-31 17:03:50 +01:00
Romain Geissler
5473efb7a1 Fix unused parameter warnings/errors with gcc 6. 2016-10-18 23:48:10 +02:00
Edward Diener
a4e729b227 Syntactic change silences latest gcc warnings about confusing 'if' statements. 2016-10-18 23:43:18 +02:00
André Draszik
eec86d1fbe trac 11756: fix usage of floating point exception macros
A fully standards conforming fenv.h does not have to define any FE_* macros, and if it does define them,
then it defines macros only for the FP exceptions it actually supports.

Correct usage requires a triple check:
1) Check BOOST_NO_FENV_H to see if the header is supported.
2) Include the header and then check FE_ALL_EXCEPT to see
   if any FP exceptions are supported.
3) Before using the individual FE_* macros, you need to
   check for their existence too as not all may be
   supported.

The reason is that some (notably FPU-less) architectures,
including mips*-nf, don't define/implement some of the
floating point constants, even though fenv.h is
available.

Other projects have similar issues, e.g. pixman, and apply similar work-arounds:
https://lists.freedesktop.org/archives/pixman/2014-February/003172.html

Architectures are notably also allowed to define FE_ALL_EXCEPT to 0!
Keeping this in mind, and knowing that the compiler will eliminate
code that can't be executed, we can change BOOST_FPE_ALL to be 0 for
the case of compiling using Clang and/or fenv.h being unavailable
as well, which allows simplification of the #ifdef's in
execution_monitor.ipp a bit.
2016-10-18 23:35:15 +02:00
Raffi Enficiaud
a733f5b951 Loggers: now checking for --logger params correctness
- checking for command line params for --logger
- handling errors properly
- printing informative messages
2016-09-14 18:05:35 +02:00
Raffi Enficiaud
f51aeac5b8 Logger: cleaned up and improved the API
- now experiencing the same behaviour as pre 1.62
- set_stream and set_threshold_level for the loggers are now mutating all loggers, not only the active ones
- renamed function
- when adding a custom logger, it is added to the set of loggers with CUSTOM
- updated the documentation
2016-09-14 14:57:46 +02:00
Raffi Enficiaud
97e039ec9d being able to add a custom formatter instead of having it in an 'invalid' state 2016-09-13 17:55:14 +02:00
Raffi Enficiaud
38bdd315c1 Additional cleanup of unused fields 2016-09-06 20:28:01 +02:00
Raffi Enficiaud
5438f8bf2a Moving the logger setup into a dedicated function 2016-09-06 20:28:01 +02:00
Raffi Enficiaud
580501ef6f gcc 4.6: fixing issues related to the new cla and C++11 not fully supported
- adding C++11 required features for the new cla
- using a unique macro definition everywhere needed
2016-09-06 11:24:59 +02:00
Raffi Enficiaud
1427dc3734 gcc 4.6: fixing issues related to operator<< not properly seen by the compiler 2016-09-06 11:24:59 +02:00
Raffi Enficiaud
5c3a4032f7 Merge branch 'topic/12241-datasets-on-tuples' into next-internal
* topic/12241-datasets-on-tuples:
  Change log update
  Enabling datasets with tuples
2016-09-06 01:19:50 +02:00
Raffi Enficiaud
d0fda1a48a Loggers documentation update
- major reorganization of the output section
- making more clear what a log and what a report is
- checkpoints doc update
- links to API, improved doxygen documentation and reference
- renamed files and sections
- JUNIT additional doc
- removed useless parts
2016-09-06 01:16:26 +02:00
Raffi Enficiaud
b87e9eb921 Enabling datasets with tuples
- adding unit test from the ticket
2016-09-06 00:10:18 +02:00
Raffi Enficiaud
a0fce77912 Merge branch 'topic/progress-log-to-stdout' into next-internal
* topic/progress-log-to-stdout:
  Progress display to stdout
2016-09-04 16:31:40 +02:00
Raffi Enficiaud
495d0aa8d7 Progress display to stdout 2016-09-04 16:30:39 +02:00
Raffi Enficiaud
b43983cf66 Merge branch 'topic/12378-clang-compilation-error' into next-internal
* topic/12378-clang-compilation-error:
  trac #12378: change log update
  Fix compilation with no support of std::initializer_list
2016-09-04 16:24:27 +02:00
Daniel Laügt
76f8b40496 Fix compilation with no support of std::initializer_list 2016-09-04 16:21:21 +02:00
Raffi Enficiaud
f1cb46d4fb trac #12257: fix incorrect line numbers/files generated by test_case_gen 2016-09-04 16:17:43 +02:00
Raffi Enficiaud
dd1558b5be Fixing the header only problem 2016-08-24 19:50:46 +02:00
Raffi Enficiaud
8567c2ae8a Merge branch 'topic/8707-8834-junit-several-loggers' into develop
* topic/8707-8834-junit-several-loggers:
  Change log update
  Documentation
  JUnit default output stream
  Logger tests: overriding the output_stream_logger matching algorithm and changing the format of the messages sent by the framework
  Combined logger: CLA handling and stream/log level per formatter
  Junit logger: integration into the set of loggers
  JUnit logger: implementation
  Multiple logger: entry in progress now being per logger as well
  Multiple logger: now enabling a logger by its format
  Multiple logger: breaking changes in the API in order to be able to add a logger per format on the fly
  Loggers: now handling abort signal as well
  Multiple loggers: having several loggers at the same time
  Algorithm: replace all strings with/out wildcards
  output_test_stream: being able to override the match_pattern method by making it virtual (+ other functions)
  output_test_stream: improved messages on error
  Framework: fixing the time associated to each test unit
  issues with VS placeholders
2016-08-18 01:47:55 +02:00