From 86b5841119c9112c159828a510a2de52ee16f35d Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 2 Oct 2019 21:30:44 +0200 Subject: [PATCH] default.nix: run tests --- default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 4fb105b..fe88611 100644 --- a/default.nix +++ b/default.nix @@ -53,7 +53,9 @@ let ]; "CC_${target}" = "${gcc}/bin/armv7l-unknown-linux-gnueabihf-gcc"; RUST_COMPILER_RT_ROOT = "${rustcSrc}/src/llvm-project/compiler-rt"; - doCheck = false; + checkPhase = '' + cargo test --target=${hostPlatform.config} + ''; }; in { inherit pkgs rustPlatform rustcSrc gcc firmware;