Unverified Commit 2d55b619 authored by Daniel Nagy's avatar Daniel Nagy
Browse files

espup: simplify version tester

parent 3c584440
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
, zstd
, stdenv
, darwin
, runCommand
, testers
, espup
}:

@@ -62,15 +62,8 @@ rustPlatform.buildRustPackage rec {
      --zsh <($out/bin/espup completions zsh)
  '';

  passthru.tests = {
    simple = runCommand "${pname}-test" { } ''
      if [[ `${espup}/bin/espup --version` != *"${version}"*  ]]; then
        echo "Error: program version does not match package version"
        exit 1
      fi

      touch $out
    '';
  passthru.tests.version = testers.testVersion {
    package = espup;
  };

  meta = with lib; {