Skip to content

Commit

Permalink
obb: switch to passthru.tests
Browse files Browse the repository at this point in the history
  • Loading branch information
willcohen committed Jan 5, 2022
1 parent b65eb7e commit 3dd7698
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pkgs/development/interpreters/clojure/obb.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
, clojure
, git
, jdk
, callPackage
, obb
, fetchFromGitHub
, makeWrapper
, runCommand }:
Expand Down Expand Up @@ -64,11 +64,12 @@ stdenv.mkDerivation rec {
runHook postInstall
'';

doInstallCheck = true;
installCheckPhase = ''
[ $($out/bin/obb -e '(+ 1 2)') = '3' ]
'';

passthru.tests = {
simple = runCommand "${pname}-test" {} ''
[ $(${obb}/bin/obb -e '(+ 1 2)') = '3' ]
touch $out
'';
};

meta = with lib; {
description = "Ad-hoc ClojureScript scripting of Mac applications via Apple's Open Scripting Architecture";
Expand Down

0 comments on commit 3dd7698

Please sign in to comment.