canonical / checkbox

Checkbox is a testing framework used to validate device compatibility with Ubuntu Linux. It’s the testing tool developed for the purposes of the Ubuntu Certification program.
https://checkbox.readthedocs.io
GNU General Public License v3.0
33 stars 49 forks source link

Implement V4L2 compliance parser (New) #1569

Open tomli380576 opened 3 weeks ago

tomli380576 commented 3 weeks ago

Description

This PR implements a V4L2 compliance test parser in checkbox support for test cases to validate that the ioctl requests they need to use are actually supported.

Requires #1566

Resolved issues

Documentation

Test cases can from checkbox_support.parsers.v4l2_compliance import parse_v4l2_compliance and call the function for a device, such as parse_v4l2_compliance('/dev/video0')

Tests

Unit tests

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 97.77778% with 1 line in your changes missing coverage. Please review.

Project coverage is 48.05%. Comparing base (7b5dd02) to head (b65b2a6). Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
...upport/checkbox_support/parsers/v4l2_compliance.py 97.77% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1569 +/- ## ========================================== + Coverage 48.00% 48.05% +0.05% ========================================== Files 371 372 +1 Lines 39833 39878 +45 Branches 6730 6744 +14 ========================================== + Hits 19121 19165 +44 Misses 19994 19994 - Partials 718 719 +1 ``` | [Flag](https://app.codecov.io/gh/canonical/checkbox/pull/1569/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | Coverage Δ | | |---|---|---| | [checkbox-support](https://app.codecov.io/gh/canonical/checkbox/pull/1569/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `61.03% <97.77%> (+0.31%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.