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

View File

@ -18,6 +18,11 @@
, makeWrapper , makeWrapper
, runCommand , runCommand
, doInstallCheck ? true , doInstallCheck ? true
# packages that use bats (for update testing)
, bash-preexec
, kikit
, locate-dominating-file
, packcc
}: }:
resholve.mkDerivation rec { resholve.mkDerivation rec {
@ -207,6 +212,16 @@ resholve.mkDerivation rec {
touch $out 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; { meta = with lib; {