buildRustCrateTests: use releaseTools.aggregate
Previously I did use `runCommand` to do the same. Using releaseTools.aggregate seems a lot saner and we might get nicer hydra output of the tests that are failing.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ lib, buildRustCrate, runCommand, writeTextFile, symlinkJoin, callPackage }:
|
||||
{ lib, buildRustCrate, runCommand, writeTextFile, symlinkJoin, callPackage, releaseTools }:
|
||||
let
|
||||
mkCrate = args: let
|
||||
p = {
|
||||
@@ -211,9 +211,12 @@ let
|
||||
test -e ${pkg}/bin/brotli-decompressor && touch $out
|
||||
'';
|
||||
};
|
||||
test = runCommand "run-buildRustCrate-tests" {
|
||||
nativeBuildInputs = builtins.attrValues tests;
|
||||
} "
|
||||
touch $out
|
||||
";
|
||||
test = releaseTools.aggregate {
|
||||
name = "buildRustCrate-tests";
|
||||
meta = {
|
||||
description = "Test cases for buildRustCrate";
|
||||
maintainers = [ lib.maintainers.andir ];
|
||||
};
|
||||
constituents = builtins.attrValues tests;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user