aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_rust.sh
AgeCommit message (Collapse)Author
2018-06-20Add a leak suppression for backtrace_allocNick Mathewson
This appears to be an internal rust thing: I don't know why it's leaking. We should investigate further.
2018-06-20rust: Remove --all-features flag from `cargo test` call in test_rust.sh.Isis Lovecruft
We'd like to feature gate code that calls C from Rust, as a workaround to several linker issues when running `cargo test` (#25386), and we can't feature gate anything out of test code if `cargo test` is called with `--all-features`. * FIXES #26400: https://bugs.torproject.org/26400
2018-06-16Fix a bug in my fix for #26258Nick Mathewson
The fix here is use a different bourne shell subsitution for CARGO_ONLINE, so that an empty string counts as set.
2018-06-13squash! Make sure that the test_rust.sh script fails when a test failsNick Mathewson
Also make sure that we're actually running the test from within the right cwd, like we do when we're building. This seems necessary to avoid an error when running offline. Amusingly, it appears that we had this bug before: we just weren't noticing it, because of bug 26258.
2018-05-31Make sure that the test_rust.sh script fails when a test failsNick Mathewson
Exit codes from find(1) seem not to be so reliable as we had hoped. Closes ticket 26258; bugfix on 0.3.3.4-alpha when we fixed #25560
2018-03-23tests: Automatically detect Rust crates to test and also pass --verbose.Isis Lovecruft
* FIXES #25560: https://bugs.torproject.org/25560.
2017-12-05Change our build process to run Cargo from inside the build treeNick Mathewson
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.
2017-10-27Allow test_rust.sh to run from outside the makefileNick Mathewson
(This is just a matter of making sure that we handle the case where abs_top_builddir is not set)
2017-10-27move to allocating c strings from rustChelsea Holland Komlo
2017-07-13use CARGO_HOME instead of HOME when building with rustChelsea H. Komlo
2017-05-19Allow Rust build using locally supplied crates or crates.ioSebastian Hahn
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.
2017-05-19cargo-online-mode configure argumentSebastian Hahn
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.
2017-05-19Run cargo test during make checkSebastian Hahn