summaryrefslogtreecommitdiff
path: root/check
blob: 419681194713f73422bb6cd60d9c8b0e6faf6d97 (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
25
26
#!/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

./format.sh

echo "Everything seems to be in order."