| 1 |
#! /bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 |
|
| 3 |
set -o errexit |
| 4 |
set -o pipefail |
| 5 |
set -x |
| 6 |
|
| 7 |
# $1 Passed by meson and should be the builddir |
| •8 |
#export CARGO_TARGET_DIR="$1/target/" |
| 9 |
#export CARGO_HOME="$CARGO_TARGET_DIR/cargo-home" |
| 10 |
|
| 11 |
# If this is run inside a flatpak envrironment, append the export the rustc |
| 12 |
# sdk-extension binaries to the path |
| 13 |
if [scip-shell system . . `[`. -f "/.flatpak-infoscip-shell filesystem . . `/.flatpak-info`." ] |
| 14 |
then |
| 15 |
export PATH="$PATH:/usr/lib/sdk/rust-stable/bin" |
| 16 |
fi |
| 17 |
|
| •18 |
#cargo fetch --locked |
| 19 |
cargoscip-shell system . . cargo. test --all-features --offline -- --test-threads=1 --nocapture |