mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
build(nix): add cargo test
check
this is pretty much a no-op currently, but hopefully we can make some use of it in the future.
This commit is contained in:
parent
422ae1f1a7
commit
b362f12add
18
flake.nix
18
flake.nix
@ -139,6 +139,24 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
# we have to build our own `craneLib.cargoTest`
|
||||||
|
checks.cargo-test = craneLib.mkCargoDerivation (
|
||||||
|
commonArgs
|
||||||
|
// {
|
||||||
|
inherit cargoArtifacts;
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
enableParallelChecking = true;
|
||||||
|
|
||||||
|
pnameSuffix = "-test";
|
||||||
|
buildPhaseCargoCommand = "";
|
||||||
|
checkPhaseCargoCommand = ''
|
||||||
|
make ''${enableParallelChecking:+-j''${NIX_BUILD_CORES}} $makeFlags libbcachefs.a
|
||||||
|
cargo test --profile release -- --nocapture
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
inputsFrom = [
|
inputsFrom = [
|
||||||
config.packages.default
|
config.packages.default
|
||||||
|
Loading…
Reference in New Issue
Block a user