mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-22 05:54:58 +02:00
12f58b42a8
(This is just a matter of making sure that we handle the case where abs_top_builddir is not set)
17 lines
393 B
Bash
Executable File
17 lines
393 B
Bash
Executable File
#!/bin/sh
|
|
# Test all Rust crates
|
|
|
|
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
|
|
cd -
|
|
done
|
|
|
|
exit $exitcode
|