Repository navigation
Conversation
| fi | ||
|
|
||
| # An xdg_toplevel window role must have been assigned, confirming the client | ||
| # produced a visible decorated window and not just an unmapped surface. |
There was a problem hiding this comment.
This does not establish that the terminal was mapped. Weston window_create() sends an initial empty wl_surface.commit() before configure, and a trace containing only create_surface, get_xdg_surface, set_title and that commit passes both validators. Require the configure/ack_configure sequence and a non-null buffer attachment/commit for the same terminal surface before reporting mapped-window coverage. Also handle the documented legacy wl_shell path separately or remove that compatibility claim, since it never emits xdg_toplevel.
| log_warn "display_wayland_proto_validate helper is unavailable" | ||
| fi | ||
|
|
||
| if command -v display_wayland_tablet_validate >/dev/null 2>&1; then |
There was a problem hiding this comment.
There is no applicability check for zwp_tablet_manager_v2, so an otherwise working compositor without that optional protocol runs for 30 seconds and then FAILs. Detect advertised protocol/seat support before validation and SKIP an unsupported environment, retaining FAIL when a selected supported capability breaks. Please also align the PR description with this setup-only coverage: the code does not detect physical tablet hardware, exercise stylus events, or implement REQUIRE_TABLET_HW. Hardware event validation should be a separately provisioned focused test if intended.
|
|
||
| case "$REQUESTED_GRAPHICS_MODE" in | ||
| base) | ||
| if [ "$DISPLAY_BUILD_FLAVOUR" != "base" ]; then |
There was a problem hiding this comment.
display_detect_build_flavour() only detects installed Adreno EGL JSON files, not the renderer used by the running compositor. With Mesa and Adreno both installed, --base can incorrectly SKIP a healthy Mesa session and --overlay can accept it as overlay, especially because these clients use SHM. Please validate explicit mode requests against the selected runtime/driver evidence, keeping installed-vendor inventory separate, and apply the same correction to both runners without changing existing helper defaults for unrelated consumers.
| exit 0 | ||
| fi | ||
|
|
||
| if ! display_prepare_image_weston_runtime \ |
There was a problem hiding this comment.
ALLOW_RELAUNCH is ignored on the Yocto path. display_prepare_image_weston_runtime() can call weston_force_primary_1080p60_if_not_60() and overlay_start_weston_drm() when no socket exists, even with --no-allow-relaunch. Add an opt-in preparation policy to that shared helper, preserving its existing callers, and pass the requested policy from both new runners so the default cannot unexpectedly start Weston or alter its output configuration.
|
|
||
| if [ "$VALIDATE_SCREENSHOT" -ne 0 ]; then | ||
| if command -v display_screenshot_delta_begin >/dev/null 2>&1; then | ||
| display_screenshot_delta_begin "$TESTNAME" "$SCRIPT_DIR" |
There was a problem hiding this comment.
The enabled screenshot path is not bounded by DURATION: display_take_screenshot() invokes weston-screenshooter without a deadline, and a stuck capture blocks client cleanup. Extend that existing helper with a compatible bounded-command option using run_with_bounded_timeout(), keeping its parent-shell screenshot state intact and logs under CWD. Propagate a real capture failure or timeout when screenshot validation is requested instead of allowing PASS after a warning, while keeping unavailable optional capture support distinct.
| - REPO_PATH=$PWD | ||
| - cd Runner/suites/Multimedia/Display/weston-terminal/ | ||
| - DURATION="${DURATION}" WAIT_SECS="${WAIT_SECS}" ALLOW_RELAUNCH="${ALLOW_RELAUNCH}" VALIDATE_WAYLAND_PROTO="${VALIDATE_WAYLAND_PROTO}" VALIDATE_SCREENSHOT="${VALIDATE_SCREENSHOT}" ./run.sh || true | ||
| - $REPO_PATH/Runner/utils/send-to-lava.sh weston-terminal.res || true |
There was a problem hiding this comment.
An interruption or shell error can leave the result file absent or empty, since test_result_init() only clears it and the signal cleanup does not publish a verdict. Both YAMLs mask runner and publisher failures, so LAVA can complete without either testcase result. Finalize results through the shared lifecycle on terminal paths and call send-to-lava.sh with --expected-testcase-id without || true so missing results become visible failures.
| # returns non-zero when the child survives, retaining the PID so callers can | ||
| # detect and report the failure without discarding ownership. | ||
| # shellcheck disable=SC2317 | ||
| cleanup_client() |
There was a problem hiding this comment.
The two new runners are almost identical copies, including two copies each of the stop/escalation logic. Reuse bounded_timeout_pid_running()/bounded_timeout_cancel() from functestlib.sh and place any genuinely shared client-lifecycle operation in lib_display.sh, while keeping test sequencing and assertions in each run.sh. Use one test_result_init()/record()/finish() lifecycle, the standard bootstrap, and named usage()/parse_args() instead of adding another runner framework. Keep shared-library work in a prerequisite commit followed by the client integration so it can be reviewed and reverted coherently.
| echo "$TESTNAME FAIL" >"./${TESTNAME}.res" | ||
| exit 1 | ||
| fi | ||
|
|
There was a problem hiding this comment.
Changing into the source suite and writing results/screenshots there prevents direct runs from a separate writable CWD when the checkout is read-only. Please retain the invocation directory for artifacts, initialize RES_FILE immediately after TESTNAME, and pass that output directory to the shared capture helpers in both runners. The YAML already selects the suite directory when that is the desired output location.
| final="FAIL" | ||
| fi | ||
|
|
||
| if [ "$elapsed" -le 1 ]; then |
There was a problem hiding this comment.
DURATION=1s is accepted as valid, but a client that runs that full interval can then FAIL this unconditional elapsed<=1 check. Base early-exit detection on the requested duration and launcher-owned stop, or reject an unsupported minimum before runtime preparation. Validate these controls in parse_args(), and remove the advertised STOP_GRACE setting or actually honor it, since it is currently never consumed by either stop path.
Display: onboard weston-tablet and weston-terminal testcases Add two new Weston client testcases under Runner/suites/Multimedia/Display/, following the established pattern of the existing weston-flower, weston-smoke, weston-simple-damage, and weston-presentation-shm testcases in that directory. weston-tablet: Wayland tablet-protocol client that exercises the zwp_tablet_manager_v2 interface by connecting to the compositor's tablet seat and processing stylus proximity, tip, and motion events Validates that the compositor correctly advertises and handles the Wayland tablet protocol v2 (wp-tablet-unstable-v2); requires a physical stylus or graphics tablet input device to be present and recognised by libinput — testcase is SKIPped automatically when no tablet hardware is detected weston-terminal: Weston built-in terminal emulator client that creates a fully composited desktop window via the xdg-shell protocol and renders a VTE-backed terminal surface on the connected display Validates that the compositor correctly manages xdg_toplevel lifecycle (configure, ack_configure, commit), that the surface is mapped and visible on the connected output, and that keyboard input routing through the Wayland seat is functional Each testcase includes: run.sh: discovers init_env by walking up the directory tree, sources functestlib.sh, lib_display.sh, and lib_pkg_provider.sh, supports --auto/--base/--overlay graphics mode selection, --allow-relaunch, --wait-secs, --validate-wayland-proto, and --validate-screenshot flags, handles both desktop OS (weston_prepare_runtime) and Yocto image (display_prepare_image_weston_runtime) runtime paths, uses run_with_timeout when available with bounded process control fallback, emits SKIP result when prerequisite hardware (tablet seat / zwp_tablet_manager_v2) is absent, and writes a PASS/FAIL/SKIP result file for LAVA reporting .yaml: LAVA test definition with DURATION, WAIT_SECS, ALLOW_RELAUNCH, VALIDATE_WAYLAND_PROTO, and VALIDATE_SCREENSHOT params; weston-tablet yaml additionally exposes a REQUIRE_TABLET_HW param (default: 0) that controls whether a missing tablet device is treated as SKIP or FAIL README.md: documents validation scope, parameters, CLI options, expected PASS/FAIL/SKIP conditions, hardware prerequisites (weston-tablet), and log files produced Signed-off-by: Salipalli(Temp), Venkata Satya Raja Preetam Jagan <vsalipal@qti.qualcomm.com> addressing changes
592f95b to
9aa66cb
Compare
Display: onboard weston-tablet and weston-terminal testcases
Add two new Weston client testcases under Runner/suites/Multimedia/Display/, following the established pattern of the existing weston-flower, weston-smoke, weston-simple-damage, and weston-presentation-shm testcases in that directory.
weston-tablet:
Wayland tablet-protocol client that exercises the zwp_tablet_manager_v2
interface by connecting to the compositor's tablet seat and processing
stylus proximity, tip, and motion events
Validates that the compositor correctly advertises and handles the
Wayland tablet protocol v2 (wp-tablet-unstable-v2); requires a physical
stylus or graphics tablet input device to be present and recognised by
libinput — testcase is SKIPped automatically when no tablet hardware is
detected
weston-terminal:
Weston built-in terminal emulator client that creates a fully composited
desktop window via the xdg-shell protocol and renders a VTE-backed
terminal surface on the connected display
Validates that the compositor correctly manages xdg_toplevel lifecycle
(configure, ack_configure, commit), that the surface is mapped and
visible on the connected output, and that keyboard input routing through
the Wayland seat is functional
Each testcase includes:
run.sh: discovers init_env by walking up the directory tree, sources
functestlib.sh, lib_display.sh, and lib_pkg_provider.sh, supports
--auto/--base/--overlay graphics mode selection, --allow-relaunch,
--wait-secs, --validate-wayland-proto, and --validate-screenshot flags,
handles both desktop OS (weston_prepare_runtime) and Yocto image
(display_prepare_image_weston_runtime) runtime paths, uses
run_with_timeout when available with bounded process control fallback,
emits SKIP result when prerequisite hardware (tablet seat /
zwp_tablet_manager_v2) is absent, and writes a PASS/FAIL/SKIP result
file for LAVA reporting
.yaml: LAVA test definition with DURATION, WAIT_SECS, ALLOW_RELAUNCH,
VALIDATE_WAYLAND_PROTO, and VALIDATE_SCREENSHOT params; weston-tablet
yaml additionally exposes a REQUIRE_TABLET_HW param (default: 0) that
controls whether a missing tablet device is treated as SKIP or FAIL
PASS/FAIL/SKIP conditions, hardware prerequisites (weston-tablet), and
log files produced