From bcd88f2f4f544744682317eaf3cd006a1fb8e2c8 Mon Sep 17 00:00:00 2001 From: edef Date: Tue, 10 Oct 2023 19:08:34 +0000 Subject: [PATCH] Run tests in debug mode Previously, crate2nix tests were run equivalently to `cargo test --release`, which is a somewhat unusual default configuration. --- crate2nix/Cargo.nix | 1 + crate2nix/templates/nix/crate2nix/default.nix | 1 + sample_projects/bin_with_git_submodule_dep/Cargo.nix | 1 + sample_projects/codegen/Cargo.nix | 1 + sample_projects/sub_dir_crates/Cargo.nix | 1 + 5 files changed, 5 insertions(+) diff --git a/crate2nix/Cargo.nix b/crate2nix/Cargo.nix index 21209692..8fbfabce 100644 --- a/crate2nix/Cargo.nix +++ b/crate2nix/Cargo.nix @@ -2444,6 +2444,7 @@ rec { ( _: { buildTests = true; + release = false; } ); # If the user hasn't set any pre/post commands, we don't want to diff --git a/crate2nix/templates/nix/crate2nix/default.nix b/crate2nix/templates/nix/crate2nix/default.nix index 4eefda8c..d0641183 100644 --- a/crate2nix/templates/nix/crate2nix/default.nix +++ b/crate2nix/templates/nix/crate2nix/default.nix @@ -111,6 +111,7 @@ rec { ( _: { buildTests = true; + release = false; } ); # If the user hasn't set any pre/post commands, we don't want to diff --git a/sample_projects/bin_with_git_submodule_dep/Cargo.nix b/sample_projects/bin_with_git_submodule_dep/Cargo.nix index a8a06f19..f2dbb41d 100644 --- a/sample_projects/bin_with_git_submodule_dep/Cargo.nix +++ b/sample_projects/bin_with_git_submodule_dep/Cargo.nix @@ -1459,6 +1459,7 @@ rec { ( _: { buildTests = true; + release = false; } ); # If the user hasn't set any pre/post commands, we don't want to diff --git a/sample_projects/codegen/Cargo.nix b/sample_projects/codegen/Cargo.nix index 4a055101..1d4b18c8 100644 --- a/sample_projects/codegen/Cargo.nix +++ b/sample_projects/codegen/Cargo.nix @@ -591,6 +591,7 @@ rec { ( _: { buildTests = true; + release = false; } ); # If the user hasn't set any pre/post commands, we don't want to diff --git a/sample_projects/sub_dir_crates/Cargo.nix b/sample_projects/sub_dir_crates/Cargo.nix index 9eaa102a..ef333fe3 100644 --- a/sample_projects/sub_dir_crates/Cargo.nix +++ b/sample_projects/sub_dir_crates/Cargo.nix @@ -243,6 +243,7 @@ rec { ( _: { buildTests = true; + release = false; } ); # If the user hasn't set any pre/post commands, we don't want to