about summary refs log tree commit diff
path: root/pkgs/development/compilers/rust
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-08-13 14:50:43 -0400
committerfigsoda <figsoda@pm.me>2023-08-13 14:50:43 -0400
commitdc7cdbe466be4b1b632a8d4d0be5f4a9b372b1f1 (patch)
tree74df7538e799694f60f08c14ce29bef37d0ddf0b /pkgs/development/compilers/rust
parent8522d789be48eb151be33f2c5053f425158ec4f2 (diff)
downloadnixlib-dc7cdbe466be4b1b632a8d4d0be5f4a9b372b1f1.tar
nixlib-dc7cdbe466be4b1b632a8d4d0be5f4a9b372b1f1.tar.gz
nixlib-dc7cdbe466be4b1b632a8d4d0be5f4a9b372b1f1.tar.bz2
nixlib-dc7cdbe466be4b1b632a8d4d0be5f4a9b372b1f1.tar.lz
nixlib-dc7cdbe466be4b1b632a8d4d0be5f4a9b372b1f1.tar.xz
nixlib-dc7cdbe466be4b1b632a8d4d0be5f4a9b372b1f1.tar.zst
nixlib-dc7cdbe466be4b1b632a8d4d0be5f4a9b372b1f1.zip
cargo-auditable-cargo-wrapper: add test
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r--pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix b/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix
index d415b2431fc3..d00ab4f496b3 100644
--- a/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix
+++ b/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix
@@ -1,7 +1,14 @@
-{ lib, runCommand, makeBinaryWrapper, cargo, cargo-auditable }:
+{ lib, runCommand, makeBinaryWrapper, rust-audit-info, cargo, cargo-auditable }:
 
 runCommand "auditable-${cargo.name}" {
   nativeBuildInputs = [ makeBinaryWrapper ];
+
+  passthru.tests = runCommand "rust-audit-info-test" {
+    nativeBuildInputs = [ rust-audit-info ];
+  } ''
+    rust-audit-info ${lib.getBin rust-audit-info}/bin/rust-audit-info > $out
+  '';
+
   meta = cargo-auditable.meta // {
     mainProgram = "cargo";
   };