Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 24 additions & 7 deletions lava_test_plans/testcases/pre-merge-bt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,36 @@
{% set test_name = test_name | default("pre-merge-bt") %}
{% set test_timeout = 30 %}

{# Get excluded tests list from device file #}
{% set EXCLUDED_TESTS = EXCLUDED_TESTS|default([]) %}

{# Conditional tags based on device type #}
{% if device_type == "iq-9075-evk" %}
{% set TAGS = ["pvt"] %}
{% endif %}

{# Define all tests with their details and pre-evaluate conditions #}
{% set all_tests = [
{"name": "BT_FW_KMD_Service", "path": "Runner/suites/Connectivity/Bluetooth/BT_FW_KMD_Service/BT_FW_KMD_Service.yaml"},
{"name": "BT_SCAN", "path": "Runner/suites/Connectivity/Bluetooth/BT_SCAN/BT_SCAN.yaml"}
] %}


{% block test_target %}
{{ super() }}
{% for test in all_tests %}
{# Check if test should be included (not excluded AND condition met if specified) #}
{% if (test.name not in EXCLUDED_TESTS) and (test.include|default(true)) %}
- from: git
name: "BT_FW_KMD_Service"
path: Runner/suites/Connectivity/Bluetooth/BT_FW_KMD_Service/BT_FW_KMD_Service.yaml
repository: {{ TEST_DEFINITIONS_REPOSITORY }}
- from: git
name: "BT_SCAN"
path: Runner/suites/Connectivity/Bluetooth/BT_SCAN/BT_SCAN.yaml
name: "{{ test.name }}"
path: {{ test.path }}
repository: {{ TEST_DEFINITIONS_REPOSITORY }}
{% endblock test_target %}
{% if test.params is defined %}
params:
{% for param_key, param_value in test.params.items() %}
{{ param_key }}: "{{ param_value }}"
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% endblock test_target %}
35 changes: 35 additions & 0 deletions lava_test_plans/testcases/pre-merge-dispaly-gfx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% extends "testcases/templates/master.jinja2" %}

{% set test_name = test_name | default("pre-merge-display-gfx") %}
{% set test_timeout = 30 %}

{# Get excluded tests list from device file #}
{% set EXCLUDED_TESTS = EXCLUDED_TESTS|default([]) %}

{% set TAGS = ["display"] %}

{# Define all tests with their details and pre-evaluate conditions #}
{% set all_tests = [
{"name": "core_auth", "path": "Runner/suites/Multimedia/Display/igt-gpu-tools/core_auth/core_auth.yaml"},
{"name": "KMSCube", "path": "Runner/suites/Multimedia/Graphics/KMSCube/KMSCube.yaml"},
{"name": "weston-simple-egl", "path": "Runner/suites/Multimedia/Graphics/weston-simple-egl/weston-simple-egl.yaml"},
] %}

{% block test_target %}
{{ super() }}
{% for test in all_tests %}
{# Check if test should be included (not excluded AND condition met if specified) #}
{% if (test.name not in EXCLUDED_TESTS) and (test.include|default(true)) %}
- from: git
name: "{{ test.name }}"
path: {{ test.path }}
repository: {{ TEST_DEFINITIONS_REPOSITORY }}
{% if test.params is defined %}
params:
{% for param_key, param_value in test.params.items() %}
{{ param_key }}: "{{ param_value }}"
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% endblock test_target %}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
../../../../testcases/pre-merge-display-gfx.yaml