mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
70c067102b
This adds a couple of configure commands to control whether we're requiring all dependencies to be available locally (default) or not (--enable-cargo-online-mode). When building from a tarball, we require the RUST_DEPENDENCIES variable to point to the local repository of crates. This also adds src/ext/rust as a git submodule that contains such a local repository for easy setup.
14 lines
332 B
Bash
Executable File
14 lines
332 B
Bash
Executable File
#!/bin/sh
|
|
# Test all the Rust crates we're using
|
|
|
|
crates=tor_util
|
|
|
|
exitcode=0
|
|
|
|
for crate in $crates; do
|
|
cd "${abs_top_srcdir:-.}/src/rust/${crate}"
|
|
CARGO_TARGET_DIR="${abs_top_builddir}/src/rust/target" HOME="${abs_top_builddir}/src/rust" "${CARGO:-cargo}" test ${CARGO_ONLINE-"--frozen"} || exitcode=1
|
|
done
|
|
|
|
exit $exitcode
|