goss: add passthru.tests.goss and meta.mainProgram
This commit is contained in:
parent
7b553b67cf
commit
9fc549a6df
1 changed files with 9 additions and 5 deletions
|
@ -49,11 +49,14 @@ buildGoModule rec {
|
|||
'';
|
||||
|
||||
passthru = {
|
||||
tests.version = testers.testVersion {
|
||||
tests = {
|
||||
inherit (nixosTests) goss;
|
||||
version = testers.testVersion {
|
||||
command = "goss --version";
|
||||
package = goss;
|
||||
version = "v${version}";
|
||||
};
|
||||
};
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
|
@ -67,7 +70,8 @@ buildGoModule rec {
|
|||
Once the test suite is written they can be executed, waited-on, or served as a health endpoint.
|
||||
'';
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
mainProgram = "goss";
|
||||
maintainers = with maintainers; [ hyzual jk anthonyroussel ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue