goss: add passthru.tests.goss and meta.mainProgram

Changed files
+9 -5
pkgs
tools
misc
+9 -5
pkgs/tools/misc/goss/default.nix
···
'';
passthru = {
-
tests.version = testers.testVersion {
-
command = "goss --version";
-
package = goss;
-
version = "v${version}";
+
tests = {
+
inherit (nixosTests) goss;
+
version = testers.testVersion {
+
command = "goss --version";
+
package = goss;
+
version = "v${version}";
+
};
};
updateScript = nix-update-script { };
};
···
Once the test suite is written they can be executed, waited-on, or served as a health endpoint.
'';
license = licenses.asl20;
+
mainProgram = "goss";
+
maintainers = with maintainers; [ hyzual jk anthonyroussel ];
platforms = platforms.linux ++ platforms.darwin;
-
maintainers = with maintainers; [ hyzual jk anthonyroussel ];
};
}