Skip to content

Commit

Permalink
[checkbox-ce-oem] Add thermal test in strict confinement mode(New) (#…
Browse files Browse the repository at this point in the history
…1084)

* Add thermal test in strict confinement mode
  • Loading branch information
rickwu666666 authored Mar 20, 2024
1 parent bb5ae8d commit 50df261
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,15 @@ include:
strict-confine/mediacard/sdhc-insert
strict-confine/mediacard/sdhc-storage
strict-confine/mediacard/sdhc-remove


id: strict-confine-thermal
unit: test plan
_name: Test thermal sensor in strict confinement mode.
_desription:
Test thermal sensor in strict ocnfinement mode.
Rely on test-strict-confinment SNAP to test.
bootstrap_include:
thermal_zones
include:
strict-confine/temperature-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
unit: template
template-engine: jinja2
template-resource: thermal_zones
template-id: strict-confine/temperature-test
id: strict-confine/temperature_{{ name }}_{{ type }}
_summary: Check Thermal temperature of {{ name }} - {{ type }}
_description:
Test a thermal temperature for {{ name }} - {{ type }}.
category_id: thermal
plugin: shell
estimated_duration: 5m
flags: also-after-suspend
imports:
from com.canonical.certification import snap
from com.canonical.certification import lsb
requires:
lsb.distributor_id == 'Ubuntu Core'
snap.name == 'test-strict-confinement'
command:
test-strict-confinement.thermal-test monitor -n {{ name }} --extra-commands "dd if=/dev/zero of=/dev/null"

0 comments on commit 50df261

Please sign in to comment.