Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Header-only mode for Boost unit tests#848

Merged
olupton merged 2 commits intomasterfrom
olupton/unit-tests
Aug 11, 2022
Merged

Header-only mode for Boost unit tests#848
olupton merged 2 commits intomasterfrom
olupton/unit-tests

Conversation

@olupton
Copy link
Copy Markdown
Contributor

@olupton olupton commented Aug 10, 2022

Description
The new solver unit test is failing on newer Red-Hat-based distributions:

This seems to be because that test included the Boost unit test framework in header-only mode but then links against an external copy of the library.

https://www.boost.org/doc/libs/1_79_0/libs/test/doc/html/boost_test/usage_variants.html implies that we need to define different macros for linking against shared/static libraries, and https://cmake.org/cmake/help/latest/module/FindBoost.html makes it look difficult to guarantee static and/or shared, so header-only mode seems like the simple way out.

How to test this?
Build the tests, run them -- you might get an error, or you might need to run them in valgrind to see it.

Use certain branches in CI pipelines.

CI_BRANCHES:NEURON_BRANCH=master,NMODL_BRANCH=master,SPACK_BRANCH=develop

A little bit of cleanup along the way.
@olupton olupton changed the title Olupton/unit tests Header-only mode for Boost unit tests Aug 10, 2022
@olupton
Copy link
Copy Markdown
Contributor Author

olupton commented Aug 10, 2022

@olupton olupton marked this pull request as ready for review August 10, 2022 11:38
@olupton olupton requested a review from alexsavulescu August 10, 2022 11:38
Copy link
Copy Markdown
Collaborator

@pramodk pramodk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@olupton olupton merged commit ca7b498 into master Aug 11, 2022
@olupton olupton deleted the olupton/unit-tests branch August 11, 2022 09:22
pramodk pushed a commit to neuronsimulator/nrn that referenced this pull request Nov 2, 2022
A little bit of other cleanup along the way.

CoreNEURON Repo SHA: BlueBrain/CoreNeuron@ca7b498
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants