Files
SpacetimeDB/tools/run-all-tests.sh
Tyler Cloutier 83fc5c33d4 The banishment of Address (#1880)
Co-authored-by: Jeffrey Dallatezza <jeffreydallatezza@gmail.com>
2024-10-23 01:56:20 +00:00

30 lines
520 B
Bash
Executable File

#!/usr/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