Skip to content

Commit 020cd08

Browse files
committed
Corrected desktop standalone tests
1 parent bcb4578 commit 020cd08

File tree

1 file changed

+12
-30
lines changed

1 file changed

+12
-30
lines changed

.yamato/desktop-standalone-tests.yml

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,25 @@
55
{% for editor in validation_editors.all-%}
66
{% for platform in test_platforms.desktop -%}
77
{% for backend in scripting_backends -%}
8-
9-
{%- set is_ubuntu = platform.name == "ubuntu" -%}
10-
{%- set is_windows = platform.name == "win" -%}
11-
{%- set is_il2cpp = backend == "il2cpp" -%}
12-
138
desktop_standalone_tests_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{ editor }}:
149
name : Standalone Tests - NGO {{ project.name }} - [{{ platform.name }}, {{ backend }}, {{ editor }}]
1510
agent:
16-
type: {{ platform.type }}{{ "::GPU" if is_ubuntu }}
17-
model: {{ "rtx2080" if is_ubuntu }}
18-
image: {{ win_il2cpp_test_image if is_windows and is_il2cpp else platform.image }}
11+
type: {{ platform.type }}{% if platform.name == "ubuntu" %}::GPU{% endif %}
12+
{% if platform.name == "ubuntu" %}
13+
model: rtx2080
14+
{% endif %}
15+
image: {% if platform.name == 'win' and backend == 'il2cpp' %}{{ win_il2cpp_test_image }} {% else %} {{ platform.image }} {% endif %}
1916
flavor: {{ platform.flavor }}
2017
commands:
2118
- npm install -g upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
22-
- unity-downloader-cli -u {{ editor }} -c Editor {{ "-c il2cpp" if is_il2cpp }} --fast --wait
19+
{% if platform.name != "win" %}
20+
- chmod +x ./utr
21+
{% endif %}
22+
- unity-downloader-cli -u {{ editor }} -c Editor {% if backend == "il2cpp" %} -c il2cpp {% endif %} --fast --wait
23+
- {% if platform.name != "win" %}./{% endif %}utr --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --testproject=testproject --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend }} --build-only --testfilter=Unity.Netcode.RuntimeTests --extra-editor-arg=-batchmode --extra-editor-arg=-nographics
2324
- |
24-
{% set utr_prefix = "./" if not is_windows %}
25-
{{ utr_prefix }}utr --suite=playmode \
26-
--platform={{ platform.standalone }} \
27-
--editor-location=.Editor \
28-
--testproject={{ project }} \
29-
--player-save-path=build/players \
30-
--artifacts_path=build/logs \
31-
--scripting-backend={{ backend }} \
32-
--build-only \
33-
--testfilter=Unity.Netcode.RuntimeTests \
34-
--extra-editor-arg=-batchmode \
35-
--extra-editor-arg=-nographics
36-
- |
37-
{{ "set" if is_windows else "export" }} UTR_VERSION=1.35.1
38-
{{ utr_prefix }}utr --suite=playmode \
39-
--platform={{ platform.standalone }} \
40-
--player-load-path=build/players \
41-
--artifacts_path=build/test-results \
42-
--scripting-backend={{ backend }} \
43-
--testfilter=Unity.Netcode.RuntimeTests \
44-
--playergraphicsapi=Null
25+
{% if platform.name == "win" %}set{% endif %}{% if platform.name != "win" %}export{% endif %} UTR_VERSION=1.35.1
26+
{% if platform.name != "win" %}./{% endif %}utr --suite=playmode --platform={{ platform.standalone }} --player-load-path=build/players --artifacts_path=build/test-results --scripting-backend={{ backend }} --testfilter=Unity.Netcode.RuntimeTests --playergraphicsapi=Null
4527
artifacts:
4628
logs:
4729
paths:

0 commit comments

Comments
 (0)