mirror of
https://github.com/The-OpenROAD-Project/OpenROAD.git
synced 2026-06-02 01:08:34 +08:00
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Install smoke test
Verifies that the binary produced by //packaging:tarfile starts correctly
after extraction (Tcl initialisation, runfiles resolution, etc.).
Running
bazelisk test //test/install/...
What it checks
- Extracts the packaging tarball into a temporary directory (same layout
that
bazelisk run //packaging:installproduces). - Launches the binary with a trivial Tcl script (
puts "install_test_ok"). - Asserts the expected output appears, proving Tcl initialised and the interpreter is functional.
Background
The installed binary relies on Bazel runfiles for Tcl library files
(init.tcl, tclreadline, etc.). These live under
openroad.runfiles/_main/bazel/tcl_resources_dir/. If the runfiles
tree is damaged during packaging or installation the binary fails with
application-specific initialization failed: (GitHub issue #10115).