#!/bin/sh # Validate authored files and Rust code. Use --full to include Slint GUI. set -eu cd "$(dirname "$0")/.." python3 tools/check_layout.py cargo fmt --all -- --check if [ "${1:-}" = "--full" ]; then cargo clippy --workspace --all-targets -- -D warnings cargo test --workspace else cargo clippy -p icenet-routing -p icenet-sim --all-targets -- -D warnings cargo test -p icenet-routing -p icenet-sim fi