catch2_3: skip test ApprovalTests on darwin

This commit is contained in:
Robert Scott 2022-07-30 22:44:50 +01:00
parent 7cf711c4e0
commit 8a4411252e

View file

@ -23,6 +23,10 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DCATCH_DEVELOPMENT_BUILD=ON"
"-DCATCH_BUILD_TESTING=${if doCheck then "ON" else "OFF"}"
] ++ lib.optionals (stdenv.isDarwin && doCheck) [
# test has a faulty path normalization technique that won't work in
# our darwin build environment https://github.com/catchorg/Catch2/issues/1691
"-DCMAKE_CTEST_ARGUMENTS=-E;ApprovalTests"
];
doCheck = true;