Skip to content

Add most tests to CMake build and fix some test dependencies - #158

Open
Flamefire wants to merge 8 commits into
boostorg:developfrom
Flamefire:cmake-tests
Open

Add most tests to CMake build and fix some test dependencies#158
Flamefire wants to merge 8 commits into
boostorg:developfrom
Flamefire:cmake-tests

Conversation

@Flamefire

Copy link
Copy Markdown
Contributor

Although BoostTestJamfile is used many tests are not included in the CMake build because they are not of the form run source.cpp ; but specify extra dependencies

I replaced that call by a small Jamfile parser that knows about the dependencies.

This surfaced a few dependency issues in the Jamefile:

  • The dependency on Boost.Random is already set for all targets, so does not need to be added again
  • boost_bind was missing from the math tests although given the C++11 base it could now be eliminated
  • boost_iterator was missing from one test
  • test_random_device was always compiled as static and shared, also compiling all dependencies twice. CI uses ./b2 link=static,shared explicitly which I'd say is a cleaner way to test than basically forcing this

Also a mini-change to avoid the deprecation warning from Boost.Bind

@codecov

codecov Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.79%. Comparing base (8a32a16) to head (f8f0da2).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #158      +/-   ##
===========================================
- Coverage    95.79%   95.79%   -0.01%     
===========================================
  Files          117      117              
  Lines         7664     7663       -1     
===========================================
- Hits          7342     7341       -1     
  Misses         322      322              
Files with missing lines Coverage Δ
test/statistic_tests.hpp 60.00% <ø> (ø)
test/test_comp_xoshiro128pp.cpp 100.00% <100.00%> (ø)
test/test_qrng_functions.hpp 100.00% <ø> (ø)
test/test_random_device.cpp 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8a32a16...f8f0da2. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant