python312Packages.pinocchio: Disable test that fails on darwin (#358668)

This commit is contained in:
Weijia Wang 2024-11-25 20:58:36 +01:00 committed by GitHub
commit 779a2855bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,12 +88,18 @@ stdenv.mkDerivation (finalAttrs: {
checkInputs = lib.optionals (pythonSupport && casadiSupport) [ python3Packages.matplotlib ]; checkInputs = lib.optionals (pythonSupport && casadiSupport) [ python3Packages.matplotlib ];
cmakeFlags = [ cmakeFlags =
[
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport) (lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport)
(lib.cmakeBool "BUILD_WITH_LIBPYTHON" pythonSupport) (lib.cmakeBool "BUILD_WITH_LIBPYTHON" pythonSupport)
(lib.cmakeBool "BUILD_WITH_CASADI_SUPPORT" casadiSupport) (lib.cmakeBool "BUILD_WITH_CASADI_SUPPORT" casadiSupport)
(lib.cmakeBool "BUILD_WITH_COLLISION_SUPPORT" collisionSupport) (lib.cmakeBool "BUILD_WITH_COLLISION_SUPPORT" collisionSupport)
(lib.cmakeBool "INSTALL_DOCUMENTATION" true) (lib.cmakeBool "INSTALL_DOCUMENTATION" true)
# Disable test that fails on darwin
# https://github.com/stack-of-tasks/pinocchio/blob/42306ed023b301aafef91e2e76cb070c5e9c3f7d/flake.nix#L24C1-L27C17
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
(lib.cmakeFeature "CMAKE_CTEST_ARGUMENTS" "--exclude-regex;pinocchio-example-py-casadi-quadrotor-ocp")
]; ];
doCheck = true; doCheck = true;