mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
nixos/release.nix: Add nixos.tests.allDrivers
This commit is contained in:
parent
51224f522f
commit
03bcd6fd64
1 changed files with 13 additions and 0 deletions
|
@ -17,6 +17,7 @@ let
|
||||||
# Run the tests for each platform. You can run a test by doing
|
# Run the tests for each platform. You can run a test by doing
|
||||||
# e.g. ‘nix-build -A tests.login.x86_64-linux’, or equivalently,
|
# e.g. ‘nix-build -A tests.login.x86_64-linux’, or equivalently,
|
||||||
# ‘nix-build tests/login.nix -A result’.
|
# ‘nix-build tests/login.nix -A result’.
|
||||||
|
# See also nixosTests in pkgs/top-level/all-packages.nix
|
||||||
allTestsForSystem = system:
|
allTestsForSystem = system:
|
||||||
import ./tests/all-tests.nix {
|
import ./tests/all-tests.nix {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
@ -24,7 +25,19 @@ let
|
||||||
callTest = t: {
|
callTest = t: {
|
||||||
${system} = hydraJob t.test;
|
${system} = hydraJob t.test;
|
||||||
};
|
};
|
||||||
|
} // {
|
||||||
|
# for typechecking of the scripts and evaluation of
|
||||||
|
# the nodes, without running VMs.
|
||||||
|
allDrivers =
|
||||||
|
import ./tests/all-tests.nix {
|
||||||
|
inherit system;
|
||||||
|
pkgs = import ./.. { inherit system; };
|
||||||
|
callTest = t: {
|
||||||
|
${system} = hydraJob t.test.driver;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
allTests =
|
allTests =
|
||||||
foldAttrs recursiveUpdate {} (map allTestsForSystem supportedSystems);
|
foldAttrs recursiveUpdate {} (map allTestsForSystem supportedSystems);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue