summary refs log tree commit diff
path: root/pkgs/development/tools/rust/cargo-geiger/default.nix
diff options
context:
space:
mode:
authorEvan Stoll <evanjsx@gmail.com>2019-11-03 19:13:08 -0500
committerJon <jonringer@users.noreply.github.com>2019-11-04 01:53:39 -0800
commitc6705f54c9dc578231619505634b913c70092a4d (patch)
treee4f8f9864f8e809421b591c57fe00b654d9e78af /pkgs/development/tools/rust/cargo-geiger/default.nix
parentc49707f50f095f8e1f4f66b48d34079a98dd49e8 (diff)
downloadnixpkgs-c6705f54c9dc578231619505634b913c70092a4d.tar
nixpkgs-c6705f54c9dc578231619505634b913c70092a4d.tar.gz
nixpkgs-c6705f54c9dc578231619505634b913c70092a4d.tar.bz2
nixpkgs-c6705f54c9dc578231619505634b913c70092a4d.tar.lz
nixpkgs-c6705f54c9dc578231619505634b913c70092a4d.tar.xz
nixpkgs-c6705f54c9dc578231619505634b913c70092a4d.tar.zst
nixpkgs-c6705f54c9dc578231619505634b913c70092a4d.zip
cargo-geiger: run tests; skip tests that require network connectivity
- Add note on how we might be able to run all tests in the future
Diffstat (limited to 'pkgs/development/tools/rust/cargo-geiger/default.nix')
-rw-r--r--pkgs/development/tools/rust/cargo-geiger/default.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/development/tools/rust/cargo-geiger/default.nix b/pkgs/development/tools/rust/cargo-geiger/default.nix
index 7d6fc6781df..2512a9ec4f4 100644
--- a/pkgs/development/tools/rust/cargo-geiger/default.nix
+++ b/pkgs/development/tools/rust/cargo-geiger/default.nix
@@ -13,10 +13,19 @@ rustPlatform.buildRustPackage rec {
     sha256 = "1lm8dx19svdpg99zbpfcm1272n18y63sq756hf6k99zi51av17xc";
   };
 
-  doCheck = false;
-
   cargoSha256 = "16zvm2y0j7ywv6fx0piq99g8q1sayf3qipd6adrwyqyg8rbf4cw6";
 
+  # Multiple tests require internet connectivity, so they are disabled here.
+  # If we ever get cargo-insta (https://crates.io/crates/insta) in tree,
+  # we might be able to run these with something like
+  # `cargo insta review` in the `preCheck` phase.
+  checkPhase = ''
+    cargo test -- \
+    --skip test_package::case_2 \
+    --skip test_package::case_3 \
+    --skip test_package::case_6
+  '';
+
   buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
   nativeBuildInputs = [ pkgconfig ];