Add some helper scripts (#1501)

Co-authored-by: Zeke Foppa <github.com/bfops>
This commit is contained in:
james gilles
2024-07-18 15:47:11 -04:00
committed by GitHub
parent ee7b0960c3
commit 0ed26a774b
2 changed files with 41 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/env bash
script_dir="$(readlink -f "$(dirname "$0")")"
stdb_root="$(realpath "$script_dir/../")"
set -euox pipefail
cd "$stdb_root"
cargo check --all --tests --benches
cargo fmt --all -- --check
cargo clippy --all --tests --benches -- -D warnings
+29
View File
@@ -0,0 +1,29 @@
#!/bin/env bash
set -euo pipefail
script_dir="$(readlink -f "$(dirname "$0")")"
stdb_root="$(realpath "$script_dir/../")"
set -euox pipefail
cd "$stdb_root"
tools/clippy.sh
cargo test --all
if which python3 >/dev/null ; then
python3 -m smoketests
elif which python >/dev/null ; then
python -m smoketests
else
echo "Can't find python, not running smoketests"
fi
if which dotnet >/dev/null ; then
dotnet test crates/bindings-csharp
else
echo "Can't find dotnet, not running smoketests"
fi