default.nix: run tests

This commit is contained in:
Astro 2019-10-02 21:30:44 +02:00
parent e1af02f77a
commit 86b5841119
1 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,9 @@ let
]; ];
"CC_${target}" = "${gcc}/bin/armv7l-unknown-linux-gnueabihf-gcc"; "CC_${target}" = "${gcc}/bin/armv7l-unknown-linux-gnueabihf-gcc";
RUST_COMPILER_RT_ROOT = "${rustcSrc}/src/llvm-project/compiler-rt"; RUST_COMPILER_RT_ROOT = "${rustcSrc}/src/llvm-project/compiler-rt";
doCheck = false; checkPhase = ''
cargo test --target=${hostPlatform.config}
'';
}; };
in { in {
inherit pkgs rustPlatform rustcSrc gcc firmware; inherit pkgs rustPlatform rustcSrc gcc firmware;