diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-01-13 19:26:43 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-01-13 19:26:43 +0200 |
commit | 3e089045170cfba1c53bb55e8d1bac8734f66d30 (patch) | |
tree | b281c632566c8e2f08a92a52780096f016a90d40 /check | |
parent | 742ad488bf780df4e480c71c97d029e93722f6d1 (diff) | |
download | obnam-benchmark-3e089045170cfba1c53bb55e8d1bac8734f66d30.tar.gz |
tests(check): add --offline for Ambient
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
Diffstat (limited to 'check')
-rwxr-xr-x | check | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -2,9 +2,15 @@ set -euo pipefail +offline= +if [ "$#" -gt 0 ] && [ "$1" = "--offline" ]; then + offline=--offline + shift 1 +fi + cargo clippy -q --all-targets -- -D clippy::all -cargo build --all-targets -q -chronic cargo test -q +cargo build --all-targets -q $offline +chronic cargo test -q $offline subplot docgen obnam-benchmark.subplot -o obnam-benchmark.html subplot codegen obnam-benchmark.subplot -o test.py chronic python3 test.py --log test.log "$@" |