mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
cargo-online-mode configure argument
Passing --enable-cargo-online-mode during configure allows cargo to make network requests while building Tor or running tests. If this flag is not supplied, the dependencies need to be available in the form of a local mirror.
This commit is contained in:
committed by
Nick Mathewson
parent
ed15511ac3
commit
d6f9a4f11a
@@ -7,6 +7,6 @@ EXTRA_DIST +=\
|
||||
src/rust/target/release/libtor_util.a: FORCE
|
||||
( cd "$(abs_top_srcdir)/src/rust/tor_util" ; \
|
||||
CARGO_TARGET_DIR="$(abs_top_builddir)/src/rust/target" \
|
||||
$(CARGO) build --release --quiet --frozen )
|
||||
$(CARGO) build --release --quiet $(CARGO_ONLINE) )
|
||||
|
||||
FORCE:
|
||||
|
||||
+2
-1
@@ -7,7 +7,8 @@ TESTS_ENVIRONMENT = \
|
||||
export abs_top_srcdir="$(abs_top_srcdir)"; \
|
||||
export builddir="$(builddir)"; \
|
||||
export TESTING_TOR_BINARY="$(TESTING_TOR_BINARY)"; \
|
||||
export CARGO="$(CARGO)";
|
||||
export CARGO="$(CARGO)"; \
|
||||
export CARGO_ONLINE="$(CARGO_ONLINE)";
|
||||
|
||||
TESTSCRIPTS = \
|
||||
src/test/fuzz_static_testcases.sh \
|
||||
|
||||
@@ -7,7 +7,7 @@ exitcode=0
|
||||
|
||||
for crate in $crates; do
|
||||
cd "${abs_top_srcdir:-.}/src/rust/${crate}"
|
||||
"${CARGO:-cargo}" test --frozen || exitcode=1
|
||||
"${CARGO:-cargo}" test ${CARGO_ONLINE-"--frozen"} || exitcode=1
|
||||
done
|
||||
|
||||
exit $exitcode
|
||||
|
||||
Reference in New Issue
Block a user