core/pkgs/build-support/trivial-builders/test/default.nix

33 lines
1 KiB
Nix
Raw Normal View History

2024-05-13 21:24:10 +00:00
/* Run all tests with:
2024-05-02 00:46:19 +00:00
2024-05-13 21:24:10 +00:00
cd nixpkgs
nix-build -A tests.trivial-builders
2024-05-02 00:46:19 +00:00
2024-05-13 21:24:10 +00:00
or run a specific test with:
2024-05-02 00:46:19 +00:00
2024-05-13 21:24:10 +00:00
cd nixpkgs
nix-build -A tests.trivial-builders.foo
2024-05-02 00:46:19 +00:00
*/
{ callPackage, lib, stdenv }:
let
inherit (lib) recurseIntoAttrs;
2024-05-13 21:24:10 +00:00
references = callPackage ./references { };
in recurseIntoAttrs {
concat = callPackage ./concat-test.nix { };
linkFarm = callPackage ./link-farm.nix { };
overriding = callPackage ../test-overriding.nix { };
2024-05-02 00:46:19 +00:00
inherit references;
2024-05-13 21:24:10 +00:00
writeCBin = callPackage ./writeCBin.nix { };
writeClosure-union =
callPackage ./writeClosure-union.nix { inherit (references) samples; };
writeShellApplication = callPackage ./writeShellApplication.nix { };
writeScriptBin = callPackage ./writeScriptBin.nix { };
writeShellScript = callPackage ./write-shell-script.nix { };
writeShellScriptBin = callPackage ./writeShellScriptBin.nix { };
2024-05-02 00:46:19 +00:00
writeStringReferencesToFile = callPackage ./writeStringReferencesToFile.nix {
inherit (references) samples;
};
2024-05-13 21:24:10 +00:00
writeTextFile = callPackage ./write-text-file.nix { };
2024-05-02 00:46:19 +00:00
}