2
0
mirror of https://github.com/boostorg/test.git synced 2026-02-02 21:22:10 +00:00
Commit Graph

1086 Commits

Author SHA1 Message Date
Raffi Enficiaud
0c36fae06f Fix patch and regression tests 2017-12-29 21:07:34 +01:00
Namezero
cbd780ea5b Dependency decorators on parent suites (trac #13149)
Dependency decorators on parent suites are not honored when a nested test selected to run via command line
2017-12-29 21:07:34 +01:00
Raffi Enficiaud
0e63a8fe53 Merge branch 'topic/PR-122-fix-fallthrough-warnings-gcc' into develop
* topic/PR-122-fix-fallthrough-warnings-gcc:
  Change log
  Fix some fallthrough warnings with gcc >= 7.
2017-12-29 20:39:55 +01:00
Romain Geissler
5edea86f6d Fix some fallthrough warnings with gcc >= 7. 2017-12-25 17:00:33 +01:00
Raffi Enficiaud
7615362bdc Merge branch 'topic/PR-121-warning-fix' into next-internal
* topic/PR-121-warning-fix:
  Change log
  fix compiler warning
2017-12-25 16:46:56 +01:00
James E. King III
3f305cebf0 fix compiler warning 2017-12-25 16:44:22 +01:00
Raffi Enficiaud
fdc68b6e6d Merge branch 'topic/PR118-Update-VxWorks-support' into next-internal
* topic/PR118-Update-VxWorks-support:
  Change log update
  Adapt Boost.Test to VxWorks
2017-12-25 16:33:36 +01:00
Raffi Enficiaud
2b100e13ca Colorized and clearer help
- Color output on Windows
- Pretty printing of long docstrings
- Avoid colorizing streams we do not know
2017-12-25 16:31:40 +01:00
Brian Kuhl
93cc089c49 Adapt Boost.Test to VxWorks
- execution_monitor.ipp: m_sig_info doesn't have all the POSIX designated members and VxWorks has no USER signal
- basic_cstring.hpp: Diab compiler has limit on size of enum, similar to the IBM compiler
- VxWorks also has limited signals
2017-12-25 16:29:42 +01:00
Raffi Enficiaud
d4d71a6659 Removing unused headers 2017-07-30 18:03:50 +02:00
Raffi Enficiaud
66b5d58857 Extra ; 2017-07-17 09:24:06 +02:00
Raffi Enficiaud
42a59be6e6 Merge branch 'topic/11471-array-sequence' into next-internal
* topic/11471-array-sequence:
  Change log
  Documentation update
  Fixing array comparison semantics
  C-arrays are now considered as sequences
2017-07-14 12:46:55 +02:00
Raffi Enficiaud
3fb84ca894 Fixing array comparison semantics 2017-07-09 10:32:50 +02:00
Raffi Enficiaud
aece067770 C-arrays are now considered as sequences
Most of the difficulty came from the fact that c-strings are also c-arrays, but comparisons are made in a different way (eg. not considering the last \0 element in the computation of the size, etc)

- is_forward_iterable now just checks if the type has accessors that makes it forward iterable (no size member function for instance)
- new concept: is_forward_container_iterable that looks for forward_iterable access + size and specific types. This is needed in order to disambiguate the dataset creation for arrays from the ones for collections
- is_cstring is now only for the C-string type of arrays. std::string and basic_cstring are not a C-strings anymore
- new concept is_cstring_comparable: indicates that types can be compared as if they were strings
- new concept for converting types to a basic_cstring, used for comparisons
- wrapper for accessing the begin/end/size (works for containers and C-arrays
- copy ctor for basic_cstring
- boost.range(begin/end) does not work well for array types
2017-07-06 11:47:03 +02:00
Raffi Enficiaud
fcb302b66e Indicating the log level to the formatters for the contexts
- unit tests for the message part: for checking the dataset, we need to register it and then to re-run it under our own environment (so technically it runs twice in the test module)
- refactoring of tests for reusing the stream checker that is agnostic to filenames location, testing time, etc. Modifying the baseline outputs accordingly
2017-07-06 11:45:33 +02:00
Raffi Enficiaud
8b3e003aa4 Merge branch 'topic/removing-warnings' into next-internal
* topic/removing-warnings:
  Conflicting variable names
  Removing warnings
2017-07-06 11:41:42 +02:00
Raffi Enficiaud
8106d3d58e Merge branch 'topic/12228-header-compilation-independant' into next-internal
* topic/12228-header-compilation-independant:
  Change logs
  #12228: Adding missing headers to compile some files independantly

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2017-07-06 09:28:21 +02:00
Raffi Enficiaud
ba552e68c4 Conflicting variable names 2017-07-04 08:59:10 +02:00
Raffi Enficiaud
72a62b6c16 #12228: Adding missing headers to compile some files independantly 2017-06-27 21:13:46 +02:00
Raffi Enficiaud
bf703c2628 Fixing the relational/comparison operators for floating points
- simplifying the logic behind the operations
- minor doc fixes
- tests output change slightly due to the fact that <= and >= are now going through the
  floating point comparison
2017-06-27 20:54:55 +02:00
Raffi Enficiaud
29b289b985 Removing warnings 2017-06-26 16:31:58 +02:00
Raffi Enficiaud
91253a1ab1 Warnings 2017-06-24 21:53:14 +02:00
Raffi Enficiaud
e1b211f254 Documentation update for the new macros
- BOOST_TEST_GLOBAL_FIXTURE explained
- BOOST_TEST_GLOBAL_INITIALIZATION explained
- changed the examples, deprecating BOOST_GLOBAL_FIXTURE
- in the logger part, introduced the fact that BOOST_TEST_GLOBAL_INITIALIZATION should be used and no assertion is supported in this case
2017-06-23 14:54:56 +02:00
Raffi Enficiaud
5757d9cd16 Fixing logging issues for JUnit with global fixtures
- considering skipped tests: a skipped test is not considered as an error, especially when there was no logged information
- removing CR/LF from TU names
- updating the JUnit output
- additional refactoring of junit
2017-06-22 09:22:57 +02:00
Raffi Enficiaud
8710eb8277 Fixture setup/teardown now applied to BOOST_FIXTURE_TEST_CASE familly of macros 2017-06-22 09:22:57 +02:00
Raffi Enficiaud
1ba4e0a9b8 Fixture setup/teardown detection for C++11 capable compilers 2017-06-22 09:22:56 +02:00
Raffi Enficiaud
847212ae0c Improving global initialization and fixtures
- new macros:
  BOOST_TEST_GLOBAL_FIXTURE: for global "real" fixtures
  BOOST_TEST_GLOBAL_CONFIGURATION: for global configuration of observers.
- deprecating BOOST_GLOBAL_FIXTURE. BOOST_GLOBAL_FIXTURE and BOOST_TEST_GLOBAL_CONFIGURATION are currently
  fully equivalent, the former being confusing in term of scope/role is deprecated
- SFINAE detection for a setup/teardown function within the fixture class
- Attaching global fixture to the main or master test unit being executed, exactly as other fixtures. Global fixtures
  via BOOST_TEST_GLOBAL_FIXTURE registers themselves in a particular field of the framework and are attached each time
  the framework executes the tests, such that we can run the framework on another test root and still benefit from the
  global fixtures. The global fixtures are appended to already existing fixtures (in case the master test suite is not
  the root of the current execution tree).
- Checking that the framework setup is not failing for running the test
- RAII class for restoring the global fixtures
- Tests on the setup/teardown detection
- Tests on global fixtures and baseline
- Fixing several logging issues

Some additional refactoring
- renaming m_curr_test_case to m_curr_test_unit
- function for providing the current test unit (and not only the current test case)
- for output_stream comparison: stops properly if the reference stream is shorter than the current one,
  initialises the read char correctly to 0 and prints a proper ~ at the mismatch location
2017-06-22 09:20:58 +02:00
Daniela Engert
f3a26e0cf9 Conditionally replace deprecated/removed C++98 binders, adapters, and random_shuffle by emulations using more modern equivalents.
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-05-01 10:11:47 +02:00
Raffi Enficiaud
cb2a1c2488 FPE: disabling support of the glibC extensions for uLibC std library
- this mimics the behaviour of boost 1.61 (external patch to BOOST_NO_FENV_H)
2017-03-18 08:18:59 +01:00
Raffi Enficiaud
066e28ccec Preventing the compilation of floating points with GCC when glibc is not in use
- Gathering the support of FPE in one place/several macros and using those in both
  execution_monitor.hpp and execution_monitor.ipp in a more coherent way
- Updating the support of the floating point exceptions: fenableexcept/fdisableexcept are
  GLIBC extensions and the definition of FENV does not imply the existance of those functions
2017-03-11 10:01:59 +01:00
Raffi Enficiaud
7051d361f8 Merge branch 'topic/12540-printing-types-customisation-point' into next-internal
* topic/12540-printing-types-customisation-point:
  Change log update
  Documenting the customization point
  Fixing the tests and checking everything works ok
  Test for customization points
  Customization points for printing user defined types through `boost_test_print_type`
2017-03-09 15:52:41 +01:00
Raffi Enficiaud
3f1da25d93 JUnit: changing the default to log-messages 2017-03-05 20:40:59 +01:00
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
065e85ff08 Customization points for printing user defined types through boost_test_print_type
- some cleanups
2017-02-16 08:38:33 +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