forked from Linaro/lava-test-plans
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpre-merge-basic.yaml
More file actions
58 lines (53 loc) · 3.34 KB
/
pre-merge-basic.yaml
File metadata and controls
58 lines (53 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{% extends "testcases/templates/master.jinja2" %}
{% set test_name = test_name | default("pre-merge-basic") %}
{% set test_timeout = 10 %}
{# Get excluded tests list from device file #}
{% set EXCLUDED_TESTS = EXCLUDED_TESTS|default([]) %}
{# Define all tests with their details and pre-evaluate conditions #}
{% set all_tests = [
{"name": "hotplug", "path": "Runner/suites/Kernel/Baseport/hotplug/hotplug.yaml", "expected": ["hotplug"]},
{"name": "CPUFreq_Validation", "path": "Runner/suites/Kernel/Baseport/CPUFreq_Validation/CPUFreq_Validation.yaml", "expected": ["CPUFreq_Validation"]},
{"name": "Interrupts", "path": "Runner/suites/Kernel/Baseport/Interrupts/Interrupts.yaml", "expected": ["Interrupts"]},
{"name": "cdsp_remoteproc", "path": "Runner/suites/Kernel/Baseport/cdsp_remoteproc/cdsp_remoteproc.yaml", "expected": ["cdsp_remoteproc"]},
{"name": "adsp_remoteproc", "path": "Runner/suites/Kernel/Baseport/adsp_remoteproc/adsp_remoteproc.yaml", "expected": ["adsp_remoteproc"]},
{"name": "WiFi_Firmware_Driver", "path": "Runner/suites/Connectivity/WiFi/WiFi_Firmware_Driver/WiFi_Firmware_Driver.yaml", "expected": ["WiFi_Firmware_Driver"]},
{"name": "WiFi_OnOff", "path": "Runner/suites/Connectivity/WiFi/WiFi_OnOff/WiFi_OnOff.yaml", "expected": ["WiFi_OnOff"]},
{"name": "OpenCV", "path": "Runner/suites/Multimedia/OpenCV/OpenCV.yaml", "expected": ["OpenCV"]},
{"name": "irq", "path": "Runner/suites/Kernel/Baseport/irq/irq.yaml", "expected": ["irq"]},
{"name": "BT_ON_OFF", "path": "Runner/suites/Connectivity/Bluetooth/BT_ON_OFF/BT_ON_OFF.yaml", "expected": ["BT_ON_OFF"]},
{"name": "AudioRecord", "path": "Runner/suites/Multimedia/Audio/AudioRecord/AudioRecord.yaml", "expected": ["AudioRecord"]},
{"name": "AudioPlayback", "path": "Runner/suites/Multimedia/Audio/AudioPlayback/AudioPlayback.yaml", "include": (AUDIO_CLIPS_URL is defined and AUDIO_CLIPS_URL), "params": {"AUDIO_CLIPS_BASE_DIR": "/home/AudioClips/"}, "expected": ["AudioPlayback"]},
{"name": "Ethernet", "path": "Runner/suites/Connectivity/Ethernet/Ethernet.yaml", "expected": ["Ethernet"]},
{"name": "DSP_AudioPD", "path": "Runner/suites/Multimedia/DSP_AudioPD/DSP_AudioPD.yaml", "expected": ["DSP_AudioPD"]},
{"name": "fastrpc_test", "path": "Runner/suites/Multimedia/CDSP/fastrpc_test/fastrpc_test.yaml", "expected": ["fastrpc_test"]}
] %}
{% block test_target %}
{% for test in all_tests %}
{% if (test.name not in EXCLUDED_TESTS) and (test.include|default(true)) %}
{{ super() }}
{# include the super block once if any tests are included #}
{% break %}
{% endif %}
{% endfor %}
{% 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 %}
{% if test.expected is defined and test.expected %}
expected:
{% for expected in test.expected|default([]) %}
- {{ expected }}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% endblock test_target %}