Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Jobs for V4L2 Compliance (New) #1653

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

Conversation

tomli380576
Copy link
Contributor

@tomli380576 tomli380576 commented Dec 12, 2024

Description

This PR implements test jobs utilizing the v4l2 compliance parser. Each camera will get a job for each ioctl request, so the total number of jobs would be (n_cameras * n_ioctl_tests).

Resolved issues

Documentation

As of right now each camera will run v4l2-compliance once for every ioctl request. To test more ioctls in 1 run, pass in more ioctl names in --ioctl.

Tests

Unit tests
Test plan tested on 18, 20 VM with camera pass through, 22&24 DUTs with USB cameras.

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 94.44444% with 2 lines in your changes missing coverage. Please review.

Project coverage is 49.00%. Comparing base (aac167f) to head (04a451f).
Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
providers/base/bin/v4l2_compliance_test.py 91.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1653      +/-   ##
==========================================
+ Coverage   48.96%   49.00%   +0.04%     
==========================================
  Files         371      373       +2     
  Lines       40296    40332      +36     
  Branches     6808     6816       +8     
==========================================
+ Hits        19730    19764      +34     
- Misses      19846    19847       +1     
- Partials      720      721       +1     
Flag Coverage Δ
provider-base 24.90% <91.66%> (+0.10%) ⬆️
provider-resource 35.79% <100.00%> (+0.78%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tomli380576 tomli380576 marked this pull request as ready for review January 9, 2025 06:48

def main():
udev_out = sp.check_output(
"udev_resource.py -f CAPTURE", universal_newlines=True, shell=True
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not really sure if this is the correct way to access udev outputs inside a resource job since it uses shell=True. What would be the better way to do this? 🤔

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.

1 participant