1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00
nixpkgs/pkgs
Léo Gaspard 83b27f60ce
tests: split into a separate all-tests.nix file
This will make the list much easier to re-use, eg. for `nixosTests`

The drawback is that this approaches makes the
```
nix-build release.nix -A tests.opensmtpd.x86_64-linux
```
command about twice as slow (3s to 6s): it now has to evaluate `nixpkgs`
once for each architecture, instead of just having the hardcoded list of
tests that allowed to say “ok just evaluate for x86_64-linux”.

On the other hand, complete evaluation of `release.nix` should be much
faster because we no longer import `nixpkgs` for each test: testing with
the following command went from 30s to 18s, and that's just for a few
tests.
```
time nix-instantiate --eval --strict nixos/release.nix -A tests.nat
```
I initially wanted to test on the whole `release.nix`, but there are too
many broken tests and it takes too long to eval them all, especially
compared to the fact that the current implementation breaks some setup.

Given developers can just `nix-build nixos/tests/my-test.nix`, it sounds
like an overall win.
2018-11-11 23:11:46 +09:00
..
applications Merge pull request #50095 from r-ryantm/auto-update/gocr 2018-11-11 13:33:39 +01:00
build-support buildDunePackage: inline dune.installPhase for easier overriding 2018-11-07 10:08:08 +01:00
common-updater
data osinfo-db: 20181011 -> 20181101 2018-11-09 05:26:55 -08:00
desktops deepin: remove obseleted dde-polkit-agent and dpa-ext-gnomekeyring 2018-11-10 12:37:06 -02:00
development Merge pull request #50215 from volth/patch-285 2018-11-11 14:55:26 +01:00
games minecraft-server: 1.12.2 -> 1.13.2 2018-11-11 12:47:09 +01:00
misc Merge pull request #49775 from eadwu/vscode-extensions.ms-python.python/2018.9.2 2018-11-11 11:03:44 +01:00
os-specific Merge pull request #50195 from dywedir/iwd 2018-11-10 21:55:58 +00:00
servers dovecot, opensmtpd: comment out invalid meta.tests attribute 2018-11-11 14:02:20 +01:00
shells spaceship-prompt: correct homepage url 2018-11-11 10:53:51 +01:00
stdenv tests: split into a separate all-tests.nix file 2018-11-11 23:11:46 +09:00
test
tools i2pd: 2.21.1 -> 2.22.0 2018-11-11 12:47:09 +01:00
top-level Merge pull request #50224 from volth/sed-windows 2018-11-11 10:53:04 +00:00