espup: simplify version tester
This commit is contained in:
parent
3c584440af
commit
2d55b6196b
1 changed files with 3 additions and 10 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue