mirror of
https://github.com/The-OpenROAD-Project/OpenROAD.git
synced 2026-06-02 01:08:34 +08:00
Add doc_check_rule_test rule and doc_check_test macro to test/regression.bzl that run Python documentation checks without depending on //:openroad. Guard OPENROAD_EXE in test/bazel_test.sh so it handles empty values for tests that don't need the binary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
14 lines
449 B
Bash
Executable File
14 lines
449 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex
|
|
# TEST_NAME is used in cmake and bazel, but in bazel it is a label
|
|
# not a test name.
|
|
export TEST_EXT=${TEST_FILE##*.}
|
|
export TEST_NAME=$(basename "$TEST_FILE" .$TEST_EXT)
|
|
[ -n "$OPENROAD_EXE" ] && export OPENROAD_EXE=$(realpath $OPENROAD_EXE)
|
|
export RESULTS_DIR="${TEST_UNDECLARED_OUTPUTS_DIR}/results"
|
|
export REGRESSION_TEST=$(realpath $REGRESSION_TEST)
|
|
|
|
cd $(dirname $TEST_FILE)
|
|
mkdir -p $RESULTS_DIR
|
|
$REGRESSION_TEST
|