blob: 1b4058023b69f91ea84487ac3da2d9a197444f30 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{%- macro Requirements(dir_macro, requirements) -%}
{%- set cpu_reqs = requirements|select('startsWith', 'cpu:') -%}
{%- if cpu_reqs|length -%}
{%- set cpu_req = cpu_reqs|first -%}
{{ dir_macro }}(
TEST
{{ requirements[0] }}
PROPERTY
PROCESSORS
{{ cpu_req|replace('cpu:', '') }}
)
{% endif -%}
{%- endmacro -%}
{%- if current_target.add_test_requirements is defined %}
{{ Requirements('set_property', current_target.add_test_requirements) }}
{%- endif -%}
{%- if current_target.add_ytest_requirements is defined %}
{{ Requirements('set_yunittest_property', current_target.add_ytest_requirements) }}
{%- endif -%}
|