bats: add bats-tested packages to passthru.tests

It would have been ~easy for someone to update bats without noticing
whether the update broke any packages that depend directly on the
nixpkgs-packaged bats for their tests. (I'm phrasing this tediously
because there are also some packages that vendor a copy of bats.)

Hopefully this will make it easier to confirm future updates.
This commit is contained in:
Travis A. Everett 2024-04-13 12:58:44 -05:00
parent bb0331762d
commit 7fb2aab015
1 changed files with 15 additions and 0 deletions

View File

@ -18,6 +18,11 @@
, makeWrapper
, runCommand
, doInstallCheck ? true
# packages that use bats (for update testing)
, bash-preexec
, kikit
, locate-dominating-file
, packcc
}:
resholve.mkDerivation rec {
@ -207,6 +212,16 @@ resholve.mkDerivation rec {
touch $out
'';
});
# to see when updates would break things, include packages
# that use nixpkgs' bats for testing (as long as they
# aren't massive builds)
inherit bash-preexec locate-dominating-file packcc;
resholve = resholve.tests.cli;
} // lib.optionalAttrs (!stdenv.isDarwin) {
# TODO: kikit's kicad dependency is marked broken on darwin atm
# may be able to fold this up if that resolves.
inherit kikit;
};
meta = with lib; {