summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-01-13 19:26:43 +0200
committerLars Wirzenius <liw@liw.fi>2024-01-13 19:26:43 +0200
commit3e089045170cfba1c53bb55e8d1bac8734f66d30 (patch)
treeb281c632566c8e2f08a92a52780096f016a90d40 /check
parent742ad488bf780df4e480c71c97d029e93722f6d1 (diff)
downloadobnam-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-xcheck10
1 files changed, 8 insertions, 2 deletions
diff --git a/check b/check
index c23d849..9056788 100755
--- a/check
+++ b/check
@@ -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 "$@"