Skip to content

Add OPTEE tests for OPTEE OS 4.x (New)#1814

Merged
stanley31huang merged 21 commits intomainfrom
for-optee-4x
Mar 27, 2025
Merged

Add OPTEE tests for OPTEE OS 4.x (New)#1814
stanley31huang merged 21 commits intomainfrom
for-optee-4x

Conversation

@stanley31huang
Copy link
Copy Markdown
Collaborator

Description

With OPTEE OS 4.x, the xtest would failed if we install TAs in early stage. So I made a bit change for the optee tests.
When the system running with OPTEE 3.x, the optee test would install the TAs first, then launch specific test case.
When the system running with OPTEE 4.x, launch the specific test directly.

Resolved issues

N/A

Documentation

N/A

Tests

Tested the local build snap with side-loaded provider on system running 24.04: https://certification.canonical.com/hardware/202309-32027/submission/419057/
Tested the local build snap on system running UC20: https://certification.canonical.com/hardware/202408-34281/submission/419048/

update optee jobs and scripts
update test case and test script
update snapcraft yaml
fixed bug
@stanley31huang stanley31huang added the ce-oem The PR only contains to the ce-oem provider under the contrib area label Mar 21, 2025
Copy link
Copy Markdown
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.

See my inline comment

Copy link
Copy Markdown
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.

See my inline comment

stanley31huang and others added 3 commits March 25, 2025 08:58
…pported_version.json

Co-authored-by: Pei Yao-Chang <baconYao@users.noreply.github.com>
…per.py

Co-authored-by: Pei Yao-Chang <baconYao@users.noreply.github.com>
update optee_helper
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.83%. Comparing base (5baa4d0) to head (a114a46).
Report is 122 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1814      +/-   ##
==========================================
- Coverage   49.83%   49.83%   -0.01%     
==========================================
  Files         377      377              
  Lines       40719    40713       -6     
  Branches     6851     6848       -3     
==========================================
- Hits        20294    20288       -6     
  Misses      19700    19700              
  Partials      725      725              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

fixed coding style issue
@stanley31huang stanley31huang requested a review from baconYao March 25, 2025 05:15
Copy link
Copy Markdown
Contributor

@seankingyang seankingyang left a comment

Choose a reason for hiding this comment

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

I leave some comment at bellow.

update snapcraft yaml
Copy link
Copy Markdown
Contributor

@seankingyang seankingyang left a comment

Choose a reason for hiding this comment

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

I leave some comment, please check it

…snap/snapcraft.yaml

Co-authored-by: Isaac Yang <47034756+seankingyang@users.noreply.github.com>
stanley31huang and others added 3 commits March 25, 2025 16:33
…per.py

Co-authored-by: Isaac Yang <47034756+seankingyang@users.noreply.github.com>
fix subprocess run
fix coding style issue
Copy link
Copy Markdown
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.

+1

fix format string issue on py3.5
fix python code style issue
fix string format issue
Copy link
Copy Markdown
Contributor

@seankingyang seankingyang 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 eb41688 into main Mar 27, 2025
11 checks passed
@stanley31huang stanley31huang deleted the for-optee-4x branch March 27, 2025 01:24
stanley31huang added a commit that referenced this pull request Mar 28, 2025
* update optee jobs and scripts

update optee jobs and scripts

* update test case and test script

update test case and test script

* update snapcraft yaml

update snapcraft yaml

* fixed bug

fixed bug

* Update contrib/checkbox-ce-oem/checkbox-provider-ce-oem/data/xtest_supported_version.json

Co-authored-by: Pei Yao-Chang <baconYao@users.noreply.github.com>

* Update contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/optee_helper.py

Co-authored-by: Pei Yao-Chang <baconYao@users.noreply.github.com>

* update optee_helper

update optee_helper

* fixed coding style issue

fixed coding style issue

* update snapcraft yaml

update snapcraft yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_classic20/snap/snapcraft.yaml

Co-authored-by: Isaac Yang <47034756+seankingyang@users.noreply.github.com>

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_classic24/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_classic22/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_uc20/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_uc22/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_uc24/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/optee_helper.py

Co-authored-by: Isaac Yang <47034756+seankingyang@users.noreply.github.com>

* fix subprocess run

fix subprocess run

* fix coding style issue

fix coding style issue

* fix format string issue on py3.5

fix format string issue on py3.5

* fix python code style issue

fix python code style issue

* fix string format issue

fix string format issue

---------

Co-authored-by: Pei Yao-Chang <baconYao@users.noreply.github.com>
Co-authored-by: Isaac Yang <47034756+seankingyang@users.noreply.github.com>
LiaoU3 pushed a commit that referenced this pull request Apr 14, 2025
* update optee jobs and scripts

update optee jobs and scripts

* update test case and test script

update test case and test script

* update snapcraft yaml

update snapcraft yaml

* fixed bug

fixed bug

* Update contrib/checkbox-ce-oem/checkbox-provider-ce-oem/data/xtest_supported_version.json

Co-authored-by: Pei Yao-Chang <baconYao@users.noreply.github.com>

* Update contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/optee_helper.py

Co-authored-by: Pei Yao-Chang <baconYao@users.noreply.github.com>

* update optee_helper

update optee_helper

* fixed coding style issue

fixed coding style issue

* update snapcraft yaml

update snapcraft yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_classic20/snap/snapcraft.yaml

Co-authored-by: Isaac Yang <47034756+seankingyang@users.noreply.github.com>

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_classic24/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_classic22/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_uc20/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_uc22/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_uc24/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/optee_helper.py

Co-authored-by: Isaac Yang <47034756+seankingyang@users.noreply.github.com>

* fix subprocess run

fix subprocess run

* fix coding style issue

fix coding style issue

* fix format string issue on py3.5

fix format string issue on py3.5

* fix python code style issue

fix python code style issue

* fix string format issue

fix string format issue

---------

Co-authored-by: Pei Yao-Chang <baconYao@users.noreply.github.com>
Co-authored-by: Isaac Yang <47034756+seankingyang@users.noreply.github.com>
mreed8855 pushed a commit that referenced this pull request Jul 30, 2025
* update optee jobs and scripts

update optee jobs and scripts

* update test case and test script

update test case and test script

* update snapcraft yaml

update snapcraft yaml

* fixed bug

fixed bug

* Update contrib/checkbox-ce-oem/checkbox-provider-ce-oem/data/xtest_supported_version.json

Co-authored-by: Pei Yao-Chang <baconYao@users.noreply.github.com>

* Update contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/optee_helper.py

Co-authored-by: Pei Yao-Chang <baconYao@users.noreply.github.com>

* update optee_helper

update optee_helper

* fixed coding style issue

fixed coding style issue

* update snapcraft yaml

update snapcraft yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_classic20/snap/snapcraft.yaml

Co-authored-by: Isaac Yang <47034756+seankingyang@users.noreply.github.com>

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_classic24/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_classic22/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_uc20/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_uc22/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_uc24/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/optee_helper.py

Co-authored-by: Isaac Yang <47034756+seankingyang@users.noreply.github.com>

* fix subprocess run

fix subprocess run

* fix coding style issue

fix coding style issue

* fix format string issue on py3.5

fix format string issue on py3.5

* fix python code style issue

fix python code style issue

* fix string format issue

fix string format issue

---------

Co-authored-by: Pei Yao-Chang <baconYao@users.noreply.github.com>
Co-authored-by: Isaac Yang <47034756+seankingyang@users.noreply.github.com>
mreed8855 pushed a commit that referenced this pull request Jul 31, 2025
* update optee jobs and scripts

update optee jobs and scripts

* update test case and test script

update test case and test script

* update snapcraft yaml

update snapcraft yaml

* fixed bug

fixed bug

* Update contrib/checkbox-ce-oem/checkbox-provider-ce-oem/data/xtest_supported_version.json

Co-authored-by: Pei Yao-Chang <baconYao@users.noreply.github.com>

* Update contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/optee_helper.py

Co-authored-by: Pei Yao-Chang <baconYao@users.noreply.github.com>

* update optee_helper

update optee_helper

* fixed coding style issue

fixed coding style issue

* update snapcraft yaml

update snapcraft yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_classic20/snap/snapcraft.yaml

Co-authored-by: Isaac Yang <47034756+seankingyang@users.noreply.github.com>

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_classic24/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_classic22/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_uc20/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_uc22/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-ce-oem-snap/series_uc24/snap/snapcraft.yaml

* Update contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/optee_helper.py

Co-authored-by: Isaac Yang <47034756+seankingyang@users.noreply.github.com>

* fix subprocess run

fix subprocess run

* fix coding style issue

fix coding style issue

* fix format string issue on py3.5

fix format string issue on py3.5

* fix python code style issue

fix python code style issue

* fix string format issue

fix string format issue

---------

Co-authored-by: Pei Yao-Chang <baconYao@users.noreply.github.com>
Co-authored-by: Isaac Yang <47034756+seankingyang@users.noreply.github.com>
rickwu666666 added a commit that referenced this pull request Oct 22, 2025
* Remove redundant file of 319 version json
  Based on the change of PR #1814

* Add xtest support tag 4.6.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ce-oem The PR only contains to the ce-oem provider under the contrib area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants