12 lines
638 B
Bash
Executable File
12 lines
638 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
|
|
cargo fmt --manifest-path "${repo_root}/control-plane/Cargo.toml" --check
|
|
cargo clippy --manifest-path "${repo_root}/control-plane/Cargo.toml" --locked --all-targets -- -D warnings
|
|
cargo test --manifest-path "${repo_root}/control-plane/Cargo.toml" --locked
|
|
replay="$(cargo run --quiet --manifest-path "${repo_root}/control-plane/Cargo.toml" --locked --bin replay-responses -- --sse "${repo_root}/benchmarks/fixtures/responses/structured-tool.json")"
|
|
[[ "${replay}" == *"event: response.completed"* ]]
|
|
"${repo_root}/scripts/build-cpu.sh"
|