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

[checkbox-ce-oem] add iio sensors test (New) #1036

Merged
merged 13 commits into from
Mar 19, 2024

Conversation

stanley31huang
Copy link
Collaborator

@stanley31huang stanley31huang commented Mar 5, 2024

Description

Implement new test cases for industrial I/O sensor

Resolved issues

N/A

Documentation

Refer to the kernel document about the Industrial I/O sensor
https://www.kernel.org/doc/html/v5.4/driver-api/iio/core.html#industrial-i-o-devices

Tests

Tested on Murcia project, please refer the test results from C3 website.
https://certification.canonical.com/hardware/202312-33237/submission/359230/

List-bootstrapped logs

stanley@stanley-ThinkPad-T490:~$ checkbox-cli list-bootstrapped com.canonical.contrib::ce-oem-iio-sensors-full
Using sideloaded provider: checkbox-provider-ce-oem, version 0.1 from /var/tmp/checkbox-providers/checkbox-provider-ce-oem
Skipped file: /usr/share/checkbox-provider-base/units/camera/README.rst
Skipped file: /usr/share/checkbox-provider-base/units/snapd/README.md
Skipped file: /usr/share/checkbox-provider-base/units/stress/suspend_cycles_reboot.md
Using sideloaded provider: checkbox-provider-ce-oem, version 0.1 from /var/tmp/checkbox-providers/checkbox-provider-ce-oem
com.canonical.plainbox::manifest
com.canonical.contrib::ce-oem-iio-sensors/check-pressure-0
com.canonical.certification::rtc
com.canonical.certification::sleep
com.canonical.certification::suspend/suspend_advanced_auto
com.canonical.contrib::after-suspend-ce-oem-iio-sensors/check-pressure-0
com.canonical.contrib::ce-oem-iio-sensors/check-accelerometer-1
com.canonical.contrib::after-suspend-ce-oem-iio-sensors/check-accelerometer-1
com.canonical.contrib::ce-oem-iio-sensors/check-humidityrelative-2
com.canonical.contrib::after-suspend-ce-oem-iio-sensors/check-humidityrelative-2

implement iio sensor tests
add sub parser to support dump iio sensor resource
add unittest and refactor iio sensor test
@stanley31huang stanley31huang requested a review from a team as a code owner March 5, 2024 07:08
fixed template job issue
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 40.65%. Comparing base (7dd40a1) to head (cfe645a).
Report is 31 commits behind head on main.

❗ Current head cfe645a differs from pull request most recent head f21568f. Consider uploading reports for the commit f21568f to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1036      +/-   ##
==========================================
+ Coverage   40.52%   40.65%   +0.12%     
==========================================
  Files         335      336       +1     
  Lines       37365    37445      +80     
  Branches     6348     6358      +10     
==========================================
+ Hits        15143    15223      +80     
  Misses      21585    21585              
  Partials      637      637              
Flag Coverage Δ
contrib-provider-ce-oem 32.35% <100.00%> (+2.76%) ⬆️

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.

fixed PEP8 issue
improve unittest coverage
add iio sensors test plan as part of nested test plan of ce-oem plans
baconYao
baconYao previously approved these changes Mar 8, 2024
Copy link
Contributor

@baconYao baconYao left a comment

Choose a reason for hiding this comment

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

LGTM

add author information into python scripts
Copy link
Contributor

@rickwu666666 rickwu666666 left a comment

Choose a reason for hiding this comment

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

A minor question. Please see my in-line comment.
Otherwise LGTM

applied templdate id for iio sensor tests
rickwu666666
rickwu666666 previously approved these changes Mar 12, 2024
Copy link
Contributor

@rickwu666666 rickwu666666 left a comment

Choose a reason for hiding this comment

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

LGTM

add new iio-sensors test plans
baconYao
baconYao previously approved these changes Mar 13, 2024
Copy link
Contributor

@baconYao baconYao left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@LiaoU3 LiaoU3 left a comment

Choose a reason for hiding this comment

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

Please see my comment.

contrib/checkbox-provider-ce-oem/bin/iio_sensor_test.py Outdated Show resolved Hide resolved
fixed bugs
Copy link
Contributor

@LiaoU3 LiaoU3 left a comment

Choose a reason for hiding this comment

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

Please see my comments.

contrib/checkbox-provider-ce-oem/bin/iio_sensor_test.py Outdated Show resolved Hide resolved
Copy link
Contributor

@LiaoU3 LiaoU3 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@rickwu666666 rickwu666666 left a comment

Choose a reason for hiding this comment

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

LGTM

@stanley31huang stanley31huang merged commit c4659a7 into canonical:main Mar 19, 2024
6 checks passed
@stanley31huang stanley31huang deleted the 240226_iio-sensors branch March 19, 2024 13:47
binli pushed a commit to binli/checkbox that referenced this pull request Mar 22, 2024
* Add: implement iio sensors test

implement iio sensor tests
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.

4 participants