2022-08-25 13:16:26 +00:00
|
|
|
{ makeTest ? import <nixpkgs/nixos/tests/make-test-python.nix>
|
2022-09-30 10:55:28 +00:00
|
|
|
, eval-config ? import <nixpkgs/nixos/lib/eval-config.nix>
|
2023-07-28 12:04:18 +00:00
|
|
|
, pkgs ? import <nixpkgs> { }
|
2023-06-06 11:32:47 +00:00
|
|
|
}:
|
2022-08-25 21:12:49 +00:00
|
|
|
let
|
2023-02-07 15:37:12 +00:00
|
|
|
lib = pkgs.lib;
|
2023-07-14 09:37:30 +00:00
|
|
|
diskoLib = import ../lib { inherit lib makeTest eval-config; };
|
2022-09-04 10:44:38 +00:00
|
|
|
|
2022-08-25 21:12:49 +00:00
|
|
|
allTestFilenames =
|
|
|
|
builtins.map (lib.removeSuffix ".nix") (
|
|
|
|
builtins.filter
|
2023-07-15 14:57:18 +00:00
|
|
|
(x: lib.hasSuffix ".nix" x && x != "default.nix")
|
2022-08-25 21:12:49 +00:00
|
|
|
(lib.attrNames (builtins.readDir ./.))
|
|
|
|
);
|
2023-08-13 18:36:16 +00:00
|
|
|
incompatibleTests = lib.optionals pkgs.buildPlatform.isRiscV64 [ "zfs" "zfs-over-legacy" "cli" "module" "complex" ];
|
2023-08-13 18:28:45 +00:00
|
|
|
allCompatibleFilenames = lib.subtractLists incompatibleTests allTestFilenames;
|
2022-08-25 21:12:49 +00:00
|
|
|
|
2023-08-13 18:28:45 +00:00
|
|
|
allTests = lib.genAttrs allCompatibleFilenames (test: import (./. + "/${test}.nix") { inherit diskoLib pkgs; });
|
2022-08-26 06:41:58 +00:00
|
|
|
in
|
|
|
|
allTests
|