summaryrefslogtreecommitdiff
path: root/src/test/test_rust.sh
blob: b41be978b9ec0f24387f72cd31c84e42f21fa5a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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