Commit Graph

29 Commits

Author SHA1 Message Date
brokenpip3
d87432110d
bats.libraries.bats-detik: init at 1.2.1 2023-11-28 21:55:48 +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
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
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