run all tests on ci

This commit is contained in:
lassulus committed 2022-08-25 23:31:05 +02:00
1 parent 83fb8f661e
commit 0ffaac7913
3 files changed
+12 -4

No files matched your search

+1 -1
View File
@@ -3,6 +3,6 @@ let
in { in {
test = pkgs.writeScript "test" '' test = pkgs.writeScript "test" ''
#!/bin/sh #!/bin/sh
nix-build "${toString ./tests/test.nix}"; nix-build "${toString ./tests}";
''; '';
} }
+3 -3
View File
@@ -9,11 +9,11 @@
}; };
checks.x86_64-linux = let checks.x86_64-linux = let
pkgs = nixpkgs.legacyPackages.x86_64-linux; pkgs = nixpkgs.legacyPackages.x86_64-linux;
in { in
# Run tests: nix flake check -L # Run tests: nix flake check -L
nixos-test = pkgs.callPackage ./tests/test.nix { import ./tests {
inherit pkgs;
makeTest = import (pkgs.path + "/nixos/tests/make-test-python.nix"); makeTest = import (pkgs.path + "/nixos/tests/make-test-python.nix");
}; };
};
}; };
} }
+8
View File
@@ -0,0 +1,8 @@
{ makeTest ? import <nixpkgs/nixos/tests/make-test-python.nix>
, pkgs ? (import <nixpkgs> {})
}@args:
{
luks-lvm = import ./luks-lvm.nix args;
mdadm = import ./mdadm.nix args;
zfs = import ./zfs.nix args;
}