diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2017-04-29 13:17:22 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-19 08:47:11 -0400 |
commit | f0516ed348283fb9fd8e9e1af7d9415728623b1d (patch) | |
tree | 4c9c1d4e5620af4501cc411db25e33b56e204ffa /src/test/test_rust.sh | |
parent | f8ef7c65d10ccd9403d9d64ceceba0dd74d6421f (diff) | |
download | tor-f0516ed348283fb9fd8e9e1af7d9415728623b1d.tar.gz tor-f0516ed348283fb9fd8e9e1af7d9415728623b1d.zip |
Run cargo test during make check
Diffstat (limited to 'src/test/test_rust.sh')
-rwxr-xr-x | src/test/test_rust.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/test_rust.sh b/src/test/test_rust.sh new file mode 100755 index 0000000000..b41be978b9 --- /dev/null +++ b/src/test/test_rust.sh @@ -0,0 +1,13 @@ +#!/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:-cargo}" test --frozen || exitcode=1 +done + +exit $exitcode |