| 1 |
From: Manuel Traut <[email protected]> |
| 2 |
Date: Sun, 24 Nov 2024 13:55:06 +0100 |
| 3 |
Subject: cargo-test: Remove params to allow offline tests |
| 4 |
|
| 5 |
--- |
| 6 |
meson.build | 2 -- |
| 7 |
scripts/test.sh | 6 +++--- |
| 8 |
2 files changed, 3 insertions(+), 5 deletions(-) |
| 9 |
|
| 10 |
diff --git a/meson.build b/meson.build |
| 11 |
index 3becb46..e8564f3 100644 |
| 12 |
--- a/meson.build |
| 13 |
+++ b/meson.build |
| 14 |
@@ -79,8 +79,6 @@ meson.add_dist_script( |
| 15 |
test( |
| 16 |
'cargo-test', |
| 17 |
test_script, |
| 18 |
|
| 19 |
|
| 20 |
timeout: 3000 |
| 21 |
) |
| 22 |
|
| 23 |
diff --git a/scripts/test.sh b/scripts/test.sh |
| 24 |
index 0695cf6..6c00dc7 100755 |
| 25 |
--- a/scripts/test.sh |
| 26 |
+++ b/scripts/test.sh |
| 27 |
@@ -5,8 +5,8 @@ set -o pipefail |
| 28 |
set -x |
| 29 |
|
| 30 |
# $1 Passed by meson and should be the builddir |
| 31 |
|
| 32 |
|
| 33 |
+#export CARGO_TARGET_DIR="$1/target/" |
| 34 |
+#export CARGO_HOME="$CARGO_TARGET_DIR/cargo-home" |
| 35 |
|
| 36 |
# If this is run inside a flatpak envrironment, append the export the rustc |
| 37 |
# sdk-extension binaries to the path |
| 38 |
@@ -15,5 +15,5 @@ then |
| 39 |
export PATH="$PATH:/usr/lib/sdk/rust-stable/bin" |
| 40 |
fi |
| 41 |
|
| 42 |
|
| 43 |
+#cargo fetch --locked |
| 44 |
cargo test --all-features --offline -- --test-threads=1 --nocapture |