catchorg / catchorg/Catch2

How to test a custom math library with Catch2 (while catch2 relies on libm) ?

Open
#2,877 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

I'm working on an embedded project where our executable depends on a space qualified math library called libmcs: https://essr.esa.int/project/libmcs-mathematical-library-for-critical-systems
This library is a wrapper around the standard math library to only keep the functions which were certified for space applications.

I'd like to build unit tests for my projet but there are conflicts between the standard math library used by Catch2 and libmcs used by my code.

How do you handle such a situation ?
Is there a mecanism for that in catch2 ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.