Skip to content

Commit

Permalink
Add VA API test case (New) (#908)
Browse files Browse the repository at this point in the history
Move the VA API related test cases from checkbox-iiotg-provider[1] to the base provider in checkbox monorepo.

[1] https://git.launchpad.net/~checkbox-dev/checkbox-iiotg/+git/checkbox-provider-intliotg/tree/units/va-api
  • Loading branch information
LiaoU3 authored Jan 9, 2024
1 parent bdbd9be commit 2a4a951
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions providers/base/units/va-api/category.pxu
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
unit: category
id: va-api
_name: Hardware video acceleration
12 changes: 12 additions & 0 deletions providers/base/units/va-api/jobs.pxu
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
id: va-api/va-initialize
_summary: Detect if the VA API could be loaded
category_id: va-api
imports: from com.canonical.plainbox import manifest
requires:
package.name == 'vainfo'
cpuinfo.platform == 'x86_64'
manifest.has_va_api == 'True'
plugin: shell
flags: simple
command:
vainfo && exit 0 || exit 1
4 changes: 4 additions & 0 deletions providers/base/units/va-api/manifest.pxu
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
unit: manifest entry
id: has_va_api
_name: Has support for hardware video acceleration (VA API)
value-type: bool
20 changes: 20 additions & 0 deletions providers/base/units/va-api/test-plan.pxu
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
id: va-api-full
_name: Hardware video acceleration tests
unit: test plan
include:
nested_part:
va-api-manual
va-api-automated

id: va-api-manual
_name: Hardware video acceleration tests (manual)
unit: test plan
include:
bootstrap_include:

id: va-api-automated
_name: Hardware video acceleration tests (automated)
unit: test plan
include:
va-api/va-initialize
bootstrap_include:

0 comments on commit 2a4a951

Please sign in to comment.