crane/checks/nextest.nix

38 lines
665 B
Nix

{ cargoNextest
, runCommand
}:
let
nextestSimple = cargoNextest {
src = ./simple;
pname = "nextest-simple";
cargoArtifacts = null;
};
nextestPartitionsCount = cargoNextest {
src = ./simple;
pname = "nextest-partitions-count";
partitions = 4;
partitionType = "count";
cargoArtifacts = null;
};
nextestPartitionsHash = cargoNextest {
src = ./simple;
pname = "nextest-partitions-hash";
partitions = 4;
partitionType = "hash";
cargoArtifacts = null;
};
in
runCommand "nextestTests"
{
buildInputs = [
nextestSimple
nextestPartitionsCount
nextestPartitionsHash
];
} ''
mkdir -p $out
''