mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
Allow test_rust.sh to run from outside the makefile
(This is just a matter of making sure that we handle the case where abs_top_builddir is not set)
This commit is contained in:
parent
6e08807b54
commit
12f58b42a8
1 changed files with 3 additions and 1 deletions
|
@ -5,9 +5,11 @@ crates="protover tor_util smartlist tor_allocate"
|
|||
|
||||
exitcode=0
|
||||
|
||||
set -e
|
||||
|
||||
for crate in $crates; do
|
||||
cd "${abs_top_srcdir:-.}/src/rust/${crate}"
|
||||
CARGO_TARGET_DIR="${abs_top_builddir}/src/rust/target" CARGO_HOME="${abs_top_builddir}/src/rust" "${CARGO:-cargo}" test ${CARGO_ONLINE-"--frozen"} || exitcode=1
|
||||
CARGO_TARGET_DIR="${abs_top_builddir:-../../..}/src/rust/target" CARGO_HOME="${abs_top_builddir:-../../..}/src/rust" "${CARGO:-cargo}" test ${CARGO_ONLINE-"--frozen"} || exitcode=1
|
||||
cd -
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue