mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +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
@ -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…
Reference in New Issue
Block a user