Commit graph

933 commits

Author SHA1 Message Date
Farmer_Markus
bfd964961e Added boost source build support 2025-08-15 19:38:06 +02:00
Alexander Grund
ad456c684b
Merge pull request #131 from Flamefire/gha-windows
Add Windows runners to GHA CI
2025-06-15 11:08:45 +02:00
Alexander Grund
f974db3b08 Increase verbosity of Boost tests in Appveyor 2025-06-13 15:40:37 +02:00
Alexander Grund
68e66eefb4 Workaround file-too-big error on MinGW CI 2025-06-12 09:28:40 +02:00
Alexander Grund
2f02e9c870 Use MinGW generator for GCC on Windows 2025-06-12 09:18:11 +02:00
Alexander Grund
d8809dca2a Improve check for std::uncaught_exceptions
GCC 8 on MinGW still warns about that.
Check the version of the feature macro and add parens to ensure correct
evaluation.
2025-06-11 15:16:36 +02:00
Alexander Grund
3980cc97e1
Fix CMake parallel flag for MSVC 2025-06-09 18:27:33 +02:00
Alexander Grund
66bfbe115c
Set stage dir as boost root 2025-06-09 14:18:33 +02:00
Alexander Grund
6683b829c3
CI: Add Boost debug output to CMake search 2025-06-09 14:18:33 +02:00
Alexander Grund
0d4a9f1e33
Remove std::bind1st test for C++17 2025-06-09 14:18:33 +02:00
Alexander Grund
29c7e2d067
GHA: Separate out doc and inspect builds
Don't run doc build on Windows due to missing dependencies.
Use separate steps for different builds to easier differentiate them.
2025-06-09 14:18:32 +02:00
Alexander Grund
1d2fb3f3df
GHA: Add Windows builds 2025-06-09 14:18:32 +02:00
Alexander Grund
8151fe20c7
Merge pull request #130 from Flamefire/appveyor-cxx
Enhance CI
2025-05-02 12:37:41 +02:00
Alexander Grund
a334c4fb3b Split appveyor jobs to fit time limit 2025-04-30 15:40:17 +02:00
Alexander Grund
78a4fbe129 Fix test in C++17 and up 2025-04-30 12:36:56 +02:00
Alexander Grund
c34cbb56ab Add MOCK_CXX_VERSION macro 2025-04-30 12:32:02 +02:00
Alexander Grund
f18da714f2 Make inspect target explicit 2025-04-30 09:28:18 +02:00
Alexander Grund
2e2a6525ba Appveyor: Add VS 2022 builds 2025-04-30 09:28:18 +02:00
Alexander Grund
3555de3c89 Appveyor: Update Boost version for VS 2019 2025-04-30 09:11:20 +02:00
Flamefire
d7c80fbf28 GHA: Fix ownership of repo in container
Avoid:
> fatal: detected dubious ownership in repository at '/__w/turtle/turtle'

by adding that path to the git `safe.path`.
This is caused by the command(s) running inside the container but the
folder being created outside the container so the owner inside the container is not what is expected by git.
2025-04-30 09:11:20 +02:00
Alexander Grund
20dafe08a6 Remove some detail macros and rename parameters for readability 2025-04-21 11:58:18 +02:00
Alexander Grund
cd6f5ea70d Fix GHA CI
Move Ubuntu 20.04 tests to containers as that runner image has been removed.
2025-04-21 11:21:25 +02:00
Alexander Grund
26583bebf3
GHA: Fix doc build
Use Boost 1.87 to include fix for libxslt 1.1.35:  https://github.com/boostorg/boostbook/issues/14
2025-04-05 18:38:43 +02:00
Alexander Grund
d675a05d95
Require CMake 3.16
With CMake 4 compatibility with CMake 3.5 was dropped and 3.10 deprecated.
Use a reasonably new lower bound based on Ubuntu 20
2025-04-05 18:27:25 +02:00
Mathieu Champlon
d8808f56e9
Merge pull request #125 from mat007/prepare-release
Prepare v2.0.0
2024-10-02 13:33:51 +02:00
Mathieu Champlon
e9f6716aa8 Bump version to 2.0.0 2024-09-29 20:42:36 +02:00
Mathieu Champlon
2a54301cc3
Merge pull request #123 from mat007/prepare-release
Prepare v2.0.0 release
2024-09-29 19:50:20 +02:00
Mathieu Champlon
5b498ff551 Add more prominent link to documentation 2024-09-29 17:54:26 +02:00
Mathieu Champlon
9d5689a588 Bump requirement to a C++14 compiler 2024-09-29 17:54:26 +02:00
Mathieu Champlon
ebadb64b6e Prepare v2.0.0 release 2024-09-29 17:54:26 +02:00
Mathieu Champlon
636c59b93a
Merge pull request #124 from mat007/fix-ci
Fix CI
2024-09-29 14:52:23 +02:00
Mathieu Champlon
80f8cc5e49 Test more recent compiler and boost versions 2024-09-29 14:08:56 +02:00
Mathieu Champlon
6b735c4c03 Bump actions/checkout to v4 2024-09-28 12:25:38 +02:00
Mathieu Champlon
a3c9605237
Merge pull request #122 from mat007/rename-master-to-main
Rename master branch to main
2024-09-28 11:47:52 +02:00
Mathieu Champlon
f6f3990ddf Rename master branch to main 2024-09-28 11:06:17 +02:00
Alexander Grund
1796f40e58
Merge pull request #119 from Flamefire/update-gha
GHA: Update deprecated images and workflows
2023-08-15 12:13:27 +02:00
Alexander Grund
5aff52fcca Use newer CMake for Ubuntu 18 to make it find newer Boost 2023-08-15 09:47:38 +02:00
Alexander Grund
418d12b637
GHA: Update deprecated images and workflows
The Ubuntu 18.04 runners were deprecated and removed.
`actions/checkout@v2` uses node12 which is deprecated.
Same for `actions/cache@v2`
2023-08-13 20:33:25 +02:00
Alexander Grund
4b9d9aa4cb Update links for download doc generation deps on CI
The FTP URLs don't seem to work anymore
2023-08-12 21:19:37 +02:00
Alexander Grund
5e196bac29
Replace travis CI badge by GHA badge in README 2023-08-11 14:13:04 +02:00
Alexander Grund
127d7e4659
Merge pull request #117 from Flamefire/remove-fixture
Improve use of fixture in test_matcher
2023-01-07 13:31:00 +01:00
Alexander Grund
f191de5a5a
Add test for serializing a string or functor matcher 2023-01-07 12:06:44 +01:00
Alexander Grund
9f5a8131ae
Download docbook DTD/XSL 2023-01-05 18:49:06 +01:00
Alexander Grund
6fecabcad5
Bring back the fixture
Without using a `std::string` the compiler may put the `const char*` C-Strings to the same memory address so our test might succeed when it should not.
Add a short descriptive comment and check the property where it is used.
2023-01-03 18:55:46 +01:00
Alexander Grund
700ceb9f4d
Remove fixture of tests in test_matcher
The fixture is not really required and can be replaced by definitions in
each test which even improves readability.
Also the tests are partially redundant due to implicit conversions so
add test in test_function for actual usage testing of string comparisons.
2023-01-03 18:55:45 +01:00
Alexander Grund
fa29eec0bb
Merge pull request #116 from AlexSmithEtas/fix-issue-115-null-c-string-derefs
Avoid dereferencing NULL C-strings
Fixes #115
2023-01-03 18:53:40 +01:00
Alex Smith
e55342385e Review corrections
Corrected stylistic mistakes and simplified a couple of the new tests.
2023-01-03 16:28:27 +00:00
Alex Smith
dd7340e5f7 Avoid dereferencing nullptr C-style strings
Added runtime checks for C-style strings (char*) being nullptr during matching and serialization.

This fix prevents nullptr dereferences in the case that the null character pointer (as opposed to the null nullptr_t) is expected and in the case that a non-null string is expected but nullptr is actually passed.
2023-01-02 17:38:26 +00:00
Alex Smith
528761b180 Unit test nullptr C-style strings
Added unit tests for the cases of matching and serializing C-style strings (char*) that are nullptr.

(As of this revision, these new tests correctly fail, except for the test of mock::equal; fix to follow.)
2023-01-02 17:30:54 +00:00
Alexander Grund
0dd0dfa15f
Merge pull request #110 from Flamefire/remove_pp_iterate
Replace Boost PP_Iterate by C++11 variadic templates
2022-02-16 16:04:05 +01:00