feat(detmir): add rust-first operations tooling

This commit is contained in:
igor04091968
2026-06-02 17:57:58 +03:00
parent 60670d30a8
commit 19e3682bc8
263 changed files with 51678 additions and 718 deletions
+22
View File
@@ -3,6 +3,28 @@
set -uo pipefail
TARGET_ROOT="${CARGO_TARGET_DIR:-$(cd "$(dirname "${BASH_SOURCE[0]}")/.." 2>/dev/null && pwd)/adk-rust/target}"
RUST_BIN="${AW_CONTOUR_SMOKE_RUST:-}"
rust_candidates=()
if [ -n "$RUST_BIN" ]; then
rust_candidates+=("$RUST_BIN")
fi
rust_candidates+=(
"$TARGET_ROOT/release/aw-contour-smoke"
"$(cd "$(dirname "${BASH_SOURCE[0]}")/.." 2>/dev/null && pwd)/adk-rust/target/release/aw-contour-smoke"
"/usr/local/sbin/aw-contour-smoke"
"/usr/local/bin/aw-contour-smoke"
)
for candidate in "${rust_candidates[@]}"; do
if [ -x "$candidate" ]; then
if [ "$#" -gt 0 ]; then
exec "$candidate" "$@"
fi
exec "$candidate" --mode proxmox-remote
fi
done
OK_COUNT=0
WARN_COUNT=0
FAIL_COUNT=0