mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-26 07:31:33 +01:00
Instead of using the cwd to specify the location of Cargo.toml, we use the --manifest-path option to specify its location explicitly. This works around the bug that isis diagnosed on our jenkins builds.
20 lines
488 B
Bash
Executable file
20 lines
488 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_builddir:-../../..}/src/rust"
|
|
CARGO_TARGET_DIR="${abs_top_builddir:-../../..}/src/rust/target" \
|
|
CARGO_HOME="${abs_top_builddir:-../../..}/src/rust" \
|
|
"${CARGO:-cargo}" test ${CARGO_ONLINE-"--frozen"} \
|
|
--manifest-path "${abs_top_srcdir:-.}/src/rust/${crate}/Cargo.toml" \
|
|
|| exitcode=1
|
|
cd -
|
|
done
|
|
|
|
exit $exitcode
|