Add automated V4L2 test workflow#51
Open
grawis wants to merge 2 commits into
Open
Conversation
There was a problem hiding this comment.
1 issue found across 3 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a
make test-v4l2target for repeatable local V4L2 validation.The test workflow:
vcam-util.vcam.ko./dev/videoXdevice.v4l2-compliance -f.v4l2-ctl --all.v4l2-ctl --list-formats-ext.dmesgmessages in a timestamped artifactdirectory.
Artifacts are stored under:
The artifact directory is excluded through .gitignore. With pipefail
enabled, failures from the main validation commands cause the test target
to fail instead of being hidden by tee.
Usage
make test-v4l2
The workflow requires v4l-utils, kernel module build dependencies, and
permission to run the required commands through sudo.
Summary by cubic
Add
make test-v4l2to run a repeatable local V4L2 validation and save logs as artifacts. This helps catch driver issues and makes results easy to share.New Features
make test-v4l2runsscripts/test-v4l2.shto build, loadvideobuf2_*, reloadvcam.ko, and runv4l2-complianceandv4l2-ctlon the created device.dmesgtail toartifacts/v4l2-YYYYMMDD-HHMMSS/(ignored). Fails on validation errors. Usage:make test-v4l2(needsv4l-utils, build deps, andsudo).Bug Fixes
vcam-util -lto find/dev/videoX, persist todevice.env, and fail if not found.Written for commit d30c6cb. Summary will update on new commits.