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

オープン
#2,877 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp

調査の方向性

この issue では、Catch2 のファイル、テスト、エントリポイントが指定されていません。まず、組み込み実行可能ファイルがどのように libmcs をリンクしているか、また Catch2 がどのように libm に対してビルドされているかを調べ、競合がビルド構成の問題なのか、Catch2 のサポートが必要なのかを判断してください。再現可能なテスト環境、または範囲が明確に定義された Catch2 の変更があれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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 ?

主要言語
C++
スター
21.6k
フォーク
3.4k
平均マージ
3日 12時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

catchorg/Catch2 のほかの issue

catchorg/Catch2 の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。