depot/third_party/nixpkgs/pkgs/build-support/trivial-builders/test/default.nix

34 lines
941 B
Nix
Raw Normal View History

/*
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, stdenv }:
let
inherit (lib) recurseIntoAttrs;
in
recurseIntoAttrs {
concat = callPackage ./concat-test.nix {};
linkFarm = callPackage ./link-farm.nix {};
overriding = callPackage ../test-overriding.nix {};
references =
# VM test not supported beyond linux yet
if stdenv.hostPlatform.isLinux
then callPackage ./references.nix {}
else null;
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 {};
}