Skip to content

Add IGT display test wrappers with default binary paths - #535

Open
vsalipal wants to merge 2 commits into
qualcomm-linux:mainfrom
vsalipal:onboard-Display-IGT-tests
Open

Add IGT display test wrappers with default binary paths#535
vsalipal wants to merge 2 commits into
qualcomm-linux:mainfrom
vsalipal:onboard-Display-IGT-tests

Conversation

@vsalipal

Copy link
Copy Markdown
Contributor
  • added dmabuf test
  • Added kms_vblank test with subtest filtering (excludes suspend/rpm)
  • Added kms_sysfs_edid_timing test for EDID validation
  • Added kms_setmode test for mode setting validation
  • Created README.md documentation for all tests

All tests now use /usr/libexec/igt-gpu-tools/ as default path and support optional binary path override via CLI arguments.

- added dmabuf test
- Added kms_vblank test with subtest filtering (excludes suspend/rpm)
- Added kms_sysfs_edid_timing test for EDID validation
- Added kms_setmode test for mode setting validation
- Created README.md documentation for all tests

All tests now use /usr/libexec/igt-gpu-tools/ as default path
and support optional binary path override via CLI arguments.

Signed-off-by: Salipalli(Temp), Venkata Satya Raja Preetam Jagan <vsalipal@qti.qualcomm.com>
Signed-off-by: Salipalli(Temp), Venkata Satya Raja Preetam Jagan <vsalipal@qti.qualcomm.com>
@smuppand

Copy link
Copy Markdown
Contributor

vsalipal Squash the executable-permission repair into the feature commit.


log_info "Using dmabuf binary at: $DMABUF_CMD"

if ! weston_stop; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All four wrappers stop Weston but never restart it on PASS, FAIL, or SKIP.

Follow core_auth/run.sh: source lib_display.sh, track weston_stopped_by_test, and call weston_restore_runtime on every exit path, including signals. The equivalent locations are kms_setmode:90, kms_sysfs_edid_timing:90, and kms_vblank:104.

log_info "results will be written to \"$result_file\""
log_info "-------------------Completed $TESTNAME Testcase----------------------------"

if [ "$RC" -ne 0 ]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any nonzero return code is classified as FAIL before skip handling. IGT uses exit code 77 for skipped tests, as the README itself states.

Handle RC=77 before the general nonzero branch. Apply the same correction at kms_setmode:120, kms_sysfs_edid_timing:120, and kms_vblank:135.


log_file="$test_path/${TESTNAME}_log.txt"
log_info "Running with arguments: $TEST_ARGS"
eval "$KMS_VBLANK_CMD $TEST_ARGS" > "$log_file" 2>&1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove eval from command execution. Both the binary path and subtest pattern enter eval.

Store only the pattern and invoke "$KMS_VBLANK_CMD" --run-subtest "$RUN_SUBTEST" directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants