mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 12:53:54 +00:00
eigenmath: enable tests
This commit is contained in:
parent
16d7f06261
commit
027d18d6a7
@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, buildPackages
|
||||
, unstableGitUpdater
|
||||
}:
|
||||
|
||||
@ -15,12 +16,24 @@ stdenv.mkDerivation rec {
|
||||
hash = "sha256-GZkC/Tvep7fL5nJyz0ZN7z0lUhGX4EJlXVswwAyegUE=";
|
||||
};
|
||||
|
||||
checkPhase = let emulator = stdenv.hostPlatform.emulator buildPackages; in ''
|
||||
runHook preCheck
|
||||
|
||||
for testcase in selftest1 selftest2; do
|
||||
${emulator} ./eigenmath "test/$testcase"
|
||||
done
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm555 eigenmath "$out/bin/eigenmath"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
passthru = {
|
||||
updateScript = unstableGitUpdater { };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user