mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-08-21 04:02:22 +02:00
12 lines
412 B
Bash
Executable File
12 lines
412 B
Bash
Executable File
#!/bin/bash
|
|
# Compile + run the clamp_decision property test (plain clang, no electron deps).
|
|
set -euo pipefail
|
|
if ! command -v clang >/dev/null 2>&1; then
|
|
echo "clang not found; skipping clamp_decision property test"; exit 0
|
|
fi
|
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
|
BIN="$(mktemp -t clamp_decision_test)"
|
|
trap 'rm -f "$BIN"' EXIT
|
|
clang -O2 -Wall -Wextra -Werror -o "$BIN" "$HERE/clamp_decision_test.c"
|
|
"$BIN"
|