Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
2a35b085
Unverified
Commit
2a35b085
authored
6 years ago
by
teor
Browse files
Options
Downloads
Patches
Plain Diff
Rust: backport src/test/test_rust.sh from master
Preparation for 26497.
parent
aee51d9a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/test_rust.sh
+12
-6
12 additions, 6 deletions
src/test/test_rust.sh
with
12 additions
and
6 deletions
src/test/test_rust.sh
+
12
−
6
View file @
2a35b085
#!/bin/sh
# Test all
the
Rust crates
we're using
# Test all Rust crates
crates
=
tor_util
set
-e
ex
itcode
=
0
ex
port
LSAN_OPTIONS
=
suppressions
=
${
abs_top_srcdir
}
/src/test/rust_supp.txt
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
for
cargo_toml_dir
in
"
${
abs_top_srcdir
:-
../../..
}
"
/src/rust/
*
;
do
if
[
-e
"
${
cargo_toml_dir
}
/Cargo.toml"
]
;
then
cd
"
${
cargo_toml_dir
}
"
&&
\
CARGO_TARGET_DIR
=
"
${
abs_top_builddir
:-
../../..
}
/src/rust/target"
\
CARGO_HOME
=
"
${
abs_top_builddir
:-
../../..
}
/src/rust/.cargo"
\
"
${
CARGO
:-
cargo
}
"
test
${
CARGO_ONLINE
-
"--frozen"
}
\
${
EXTRA_CARGO_OPTIONS
}
\
--manifest-path
"
${
cargo_toml_dir
}
/Cargo.toml"
||
exitcode
=
1
fi
done
exit
$exitcode
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment