Commit Graph

41 Commits

Author SHA1 Message Date
Pol Dellaiera
7a445b4728
Merge pull request #303883 from abathur/bats_1_11
bats: 1.10.0 -> 1.11.0, resholve: fix related test breakage
2024-04-17 19:21:37 +02:00
Travis A. Everett
1f9a9252a7 bats: 0.10.0 -> 0.11.0
Also conditionally excludes pkill from resolution on macOS, since the
procps package should contain pkill on other platforms.
2024-04-16 15:58:16 -05:00
Travis A. Everett
7fb2aab015 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.
2024-04-13 12:58:44 -05:00
Travis A. Everett
bb0331762d bats: reformat passthru.tests
Upcoming commit will add packages that use bats to passthru.tests,
which is a little more clear when this is one attrset.

Splitting this format-only change out for easier review.
2024-04-13 12:51:13 -05:00
Silvan Mosberger
ea5dfeab93 treewide: Drop infinisil as maintainer from most packages
I'm not going anywhere, I'm focusing my energy on other issues, and
getting pinged as a maintainer for packages is a bit distracting (also
I'm not using most of these packages anyways!)
2024-04-09 21:43:39 +02:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
brokenpip3
c95f67587c
bats.libraries.bats-detik: 1.2.1 -> 1.3.0 2024-02-27 00:12:44 +01:00
brokenpip3
8c747e39cc
bats: use finalAttrs pattern 2023-11-28 21:58:41 +01:00
brokenpip3
d87432110d
bats.libraries.bats-detik: init at 1.2.1 2023-11-28 21:55:48 +01:00
brokenpip3
a1df20a561
bats.libraries.bats-file: 0.3.0 -> 0.4.0 2023-11-14 23:05:41 +01:00
Travis A. Everett
9d69c3e721 bats: 1.9.0 -> 1.10.0 2023-07-17 19:50:14 -05:00
Thibault Gagnaux
f4fcb40eb4
bats: add bats-file library test 2023-03-11 10:57:33 +01:00
Thibault Gagnaux
a42a71cdbb
bats: bats-assert 2.0.0 -> 2.1.0 2023-03-11 10:57:33 +01:00
Thibault Gagnaux
639825c943
bats: update 1.8.2 -> 1.9.0 2023-03-09 10:12:48 +01:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Silvan Mosberger
711cffac1e
Merge pull request #199800 from abathur/bats_shrink_libraries
bats.libraries: reduce output size
2022-11-14 22:49:07 +01:00
Travis A. Everett
1e15443652 bats.libraries: reduce output size 2022-11-05 20:16:36 -05:00
R. Ryantm
6020b60cfd bats: 1.8.0 -> 1.8.2 2022-10-20 05:14:03 +00:00
Travis A. Everett
0b4c7ceb1b bats: 1.7.0 -> 1.8.0 2022-09-18 13:03:52 -05:00
Travis A. Everett
d42f6128c7 bats: Add library test
Co-Authored-By: Silvan Mosberger <contact@infinisil.com>
2022-08-09 17:34:13 +02:00
Silvan Mosberger
fbe194fdf6 bats: Add library wrapper
Adds a `bats.withLibraries (p: [ ... ])` function, which creates a
`bats` wrapper where the `BATS_LIB_PATH` environment variable contains
fallbacks for the given list of libraries.

This allows to e.g. use the `bats-assert` library (which itself requires the
`bats-support` library) with

    bats.withLibraries (p: [ p.bats-support p.bats-assert ])

In a `.bats` file you can then call `bats_load_library` [1] to load the
libraries in the `setup()` function:

    setup() {
      bats_load_library bats-support
      bats_load_library bats-assert
    }

[1]: https://bats-core.readthedocs.io/en/stable/writing-tests.html?highlight=library#bats-load-library-load-system-wide-libraries
2022-08-08 20:20:10 +02:00
Silvan Mosberger
d1949b739a bats: init libraries
- init bats-assert 2.0.0
- init bats-support 0.3.0
- init bats-file 0.3.0
2022-08-08 20:11:37 +02:00
Travis A. Everett
d32f6e65a4 bats: 1.6.0 -> 1.7.0 2022-05-16 10:35:28 -05:00
Travis A. Everett
a60c1dbb51 bats: move installCheck into passthru.tests
I happily painted myself into a corner when converting bats to use
resholve. Since resholve tests itself with bats, all updates to
resholve now require rebuilding bats. The build itself is quick, but
the tests take a few minutes; moving them into passthru saves time. :)
2022-04-23 16:05:53 -05:00
Travis A. Everett
749b97bb23 bats: improve package w/ new resholve features
The resholve 0.8.0 release includes better support for intra-package
references, making it possible to also resholve files in lib/libexec.

This process helped shake loose 5 more unnoticed package dependencies,
and enable bats' parallel execution support.
2022-04-23 16:02:19 -05:00
Travis A. Everett
368346c5a1 resholve: track API update in dependent packages 2022-04-08 21:13:20 -04:00
Travis A. Everett
7f3b4e95a2 bats: 1.5.0 -> 1.6.0 2022-02-24 22:44:30 -06:00
Travis A. Everett
d49eefbe6a bats: use resholvePackage 2022-02-07 19:43:54 -08:00
Felix Buehler
4a4e3751fa bats: switch to fetchFromGitHub 2022-01-08 15:38:10 +01:00
Michael Adler
b40d30f92d bats: 1.4.1 -> 1.5.0 2021-10-29 10:25:13 +02:00
Michael Adler
ac4e270106 bats: 1.3.0 -> 1.4.1 2021-10-19 14:28:00 +02:00
Sascha Grunert
3c240045d5
bats: 1.2.1 -> 1.3.0
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-03-17 09:51:56 +01:00
Travis A. Everett
90438281ef bats: 1.2.0 -> 1.2.1 2021-01-16 11:24:34 -06:00
Daiderd Jordan
727d9317fb
bats: fixup readlink reference
Using `readlink -f` requires coreutils, on platforms like darwin where
this isn't the GNU variant by default it would fail outide of a
nix-shell.
2020-05-02 11:46:37 +02:00
R. RyanTM
a0aae69936 bats: 1.1.0 -> 1.2.0 2020-05-02 02:31:25 +00:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Tobias Pflug
8284f09dcd bats: add missing grep dependency 2018-10-27 15:43:09 +02:00
Daiderd Jordan
8c2b4ad454
bats: 0.4.0 -> 1.1.0 2018-08-23 21:14:59 +02:00
zimbatm
a3119bd35d bats: fixes installation
The build was failing with:

  /...-stdenv/setup: ./install.sh: /usr/bin/env: bad interpreter: No such file
  or directory

See https://hydra.nixos.org/build/32353411/log
2016-03-01 00:19:27 +00:00
Daiderd Jordan
4b4d5c96c8 bats: init at 4.0.4 2016-02-07 14:53:54 +01:00