12 lines
452 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# bench CLI 入口。harness 只依赖 pyyaml;工具链在各自 venv 里由 harness 子进程调用。
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export BENCH_ROOT="${BENCH_ROOT:-$(dirname "$HERE")}"
export PYTHONPATH="$BENCH_ROOT${PYTHONPATH:+:$PYTHONPATH}"
PY="${BENCH_PYTHON:-python3}"
if [ "${BENCH_JAILED:-}" = 1 ]; then
exec "$PY" "$HERE/stageclient.py" "$@"
fi
exec "$PY" -m harness.cli "$@"