Files
OpenROAD/test/install
Øyvind Harboe 945e74cad8 Update test/install/install_test.sh
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>
2026-04-12 13:47:48 +02:00
..

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

  1. Extracts the packaging tarball into a temporary directory (same layout that bazelisk run //packaging:install produces).
  2. Launches the binary with a trivial Tcl script (puts "install_test_ok").
  3. 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).