blob: c3b0d8a4f8caea0b7c6a701c06a77f42fe3508a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
#
# Run the automated tests for the project.
set -eu
quiet=-q
hideok=chronic
if [ "$#" -gt 0 ]
then
case "$1" in
verbose | -v | --verbose)
quiet=
hideok=
;;
esac
fi
cargo build --all-targets $quiet
cargo clippy $quiet
cargo fmt -- --check
$hideok cargo test $quiet
echo "Everything seems to be in order."
|