diff --git a/pkgs/build-support/trivial-builders/test/default.nix b/pkgs/build-support/trivial-builders/test/default.nix new file mode 100644 index 000000000000..cde2014b5adc --- /dev/null +++ b/pkgs/build-support/trivial-builders/test/default.nix @@ -0,0 +1,29 @@ +/* + Run all tests with: + + cd nixpkgs + nix-build -A tests.trivial-builders + + or run a specific test with: + + cd nixpkgs + nix-build -A tests.trivial-builders.foo + +*/ + +{ callPackage, lib }: +let + inherit (lib) recurseIntoAttrs; +in +recurseIntoAttrs { + concat = callPackage ./concat-test.nix {}; + linkFarm = callPackage ./link-farm.nix {}; + overriding = callPackage ../test-overriding.nix {}; + references = callPackage ./references.nix {}; + writeCBin = callPackage ./writeCBin.nix {}; + writeScriptBin = callPackage ./writeScriptBin.nix {}; + writeShellScript = callPackage ./write-shell-script.nix {}; + writeShellScriptBin = callPackage ./writeShellScriptBin.nix {}; + writeStringReferencesToFile = callPackage ./writeStringReferencesToFile.nix {}; + writeTextFile = callPackage ./write-text-file.nix {}; +} diff --git a/pkgs/test/default.nix b/pkgs/test/default.nix index 141b4c67fbeb..6bfa1c4393c4 100644 --- a/pkgs/test/default.nix +++ b/pkgs/test/default.nix @@ -66,18 +66,7 @@ with pkgs; cuda = callPackage ./cuda { }; - trivial-builders = recurseIntoAttrs { - writeCBin = callPackage ../build-support/trivial-builders/test/writeCBin.nix {}; - writeScriptBin = callPackage ../build-support/trivial-builders/test/writeScriptBin.nix {}; - writeStringReferencesToFile = callPackage ../build-support/trivial-builders/test/writeStringReferencesToFile.nix {}; - writeTextFile = callPackage ../build-support/trivial-builders/test/write-text-file.nix {}; - writeShellScript = callPackage ../build-support/trivial-builders/test/write-shell-script.nix {}; - writeShellScriptBin = callPackage ../build-support/trivial-builders/test/writeShellScriptBin.nix {}; - references = callPackage ../build-support/trivial-builders/test/references.nix {}; - overriding = callPackage ../build-support/trivial-builders/test-overriding.nix {}; - concat = callPackage ../build-support/trivial-builders/test/concat-test.nix {}; - linkFarm = callPackage ../build-support/trivial-builders/test/link-farm.nix {}; - }; + trivial-builders = callPackage ../build-support/trivial-builders/test/default.nix {}; writers = callPackage ../build-support/writers/test.nix {};