summary refs log tree commit diff
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-05-07 12:23:21 +0000
committerGitHub <noreply@github.com>2021-05-07 12:23:21 +0000
commit12193913a1bbc203bafe0bf9059d80b500814ef1 (patch)
tree3399469359e54e9084543938ebebc4d26d3a31ae /pkgs/applications/science
parenteb47bbf4acb8b4d530ba8013caa0baa4dc23c915 (diff)
parentdb767c789d4327883b44bf4987e3a6348153aa41 (diff)
Merge staging-next into staging
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/logic/key/default.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/applications/science/logic/key/default.nix b/pkgs/applications/science/logic/key/default.nix
index 531081beafaf3..e9b0cc7540b59 100644
--- a/pkgs/applications/science/logic/key/default.nix
+++ b/pkgs/applications/science/logic/key/default.nix
@@ -5,7 +5,7 @@
 , ant
 , jre
 , makeWrapper
-, runCommand
+, testVersion
 , key
 }:
 
@@ -51,10 +51,13 @@ in stdenv.mkDerivation rec {
       --add-flags "-cp $out/share/java/KeY.jar de.uka.ilkd.key.core.Main"
   '';
 
-  passthru.tests.check-version = runCommand "key-help" {} ''
-    ${key}/bin/KeY --help | grep 2.5 # Wrong version in the code. On next version change to ${version}
-    touch $out
-  '';
+  passthru.tests.version =
+    testVersion {
+      package = key;
+      command = "KeY --help";
+      # Wrong '2.5' version in the code. On next version change to ${version}
+      version = "2.5";
+    };
 
   meta = with lib; {
     description = "Java formal verification tool";