From 9cfd6f5984ce307492ff6eb864805e8a398f64cd Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 12 Aug 2024 12:58:02 +0200 Subject: [PATCH] bonmin: run tests --- .../libraries/science/math/bonmin/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/libraries/science/math/bonmin/default.nix b/pkgs/development/libraries/science/math/bonmin/default.nix index 1b6cbedfb489..9fca78df7c63 100644 --- a/pkgs/development/libraries/science/math/bonmin/default.nix +++ b/pkgs/development/libraries/science/math/bonmin/default.nix @@ -64,6 +64,16 @@ stdenv.mkDerivation rec { # Fontconfig error: No writable cache directories preBuild = "export XDG_CACHE_HOME=$(mktemp -d)"; + doCheck = true; + checkTarget = "test"; + + # ignore one failing test + postPatch = lib.optionalString stdenv.isDarwin '' + substituteInPlace test/Makefile.in --replace-fail \ + "./unitTest\''$(EXEEXT)" \ + "" + ''; + # install documentation postInstall = "make install-doxygen-docs";