Skip to content
Draft
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
30 changes: 21 additions & 9 deletions .yamato/UnityToonShader-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,16 @@ win_test_projects:

---


# OSX Metal
{% for runtime_test_platform in osx_runtime_test_platforms %}
{% for test_project in osx_test_projects %}
{% for unity_editor in test_project.unity_editors %}

{% assign project_name = test_project.project_prefix | append: '-' | concat: unity_editor.version %}

{{ project_name }}_OSX_Metal_playmode_mono_Linear:
name: {{ project_name }} on OSX_Metal_playmode_mono_Linear
{{ project_name }}_OSX_Metal_{{ runtime_test_platform.name}}_mono:
name: {{ project_name }} on OSX_Metal {{ runtime_test_platform.name}} mono
agent:
type: {{ metal_platform.type }}
model: {{ metal_platform.model }}
Expand All @@ -124,7 +126,7 @@ win_test_projects:
retries: 2
- command: |5-

ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP "export UPM_REGISTRY=https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates; echo \$UPM_REGISTRY; cd ~/com.unity.toonshader/TestProjects/{{ project_name }} && ~/com.unity.toonshader/TestProjects/{{ project_name }}/utr --artifacts_path=/Users/bokken/com.unity.toonshader/TestProjects/{{ project_name }}/test-results --editor-location=/Users/bokken/.Editor --extra-editor-arg="-colorspace=Linear" --reruncount=2 --scripting-backend=Mono2x --suite=playmode --testproject=/Users/bokken/com.unity.toonshader/TestProjects/{{ project_name }}"
ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP "export UPM_REGISTRY=https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates; echo \$UPM_REGISTRY; cd ~/com.unity.toonshader/TestProjects/{{ project_name }} && ~/com.unity.toonshader/TestProjects/{{ project_name }}/utr --artifacts_path=/Users/bokken/com.unity.toonshader/TestProjects/{{ project_name }}/test-results --editor-location=/Users/bokken/.Editor --extra-editor-arg="-colorspace=Linear" --reruncount=2 --scripting-backend=Mono2x --suite=playmode --platform={{ runtime_test_platform.name}} --testproject=/Users/bokken/com.unity.toonshader/TestProjects/{{ project_name }}"
UTR_RESULT=$?
mkdir -p TestProjects/{{ project_name }}/test-results/
scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" -r bokken@$BOKKEN_DEVICE_IP:/Users/bokken/com.unity.toonshader/TestProjects/{{ project_name }}/test-results/ TestProjects/{{ project_name }}/test-results/
Expand All @@ -136,16 +138,17 @@ win_test_projects:
- "TestProjects/{{ project_name }}/Logs/*.log"
{% endfor %}
{% endfor %}

{% endfor %}

# Windows
{% for runtime_test_platform in win_runtime_test_platforms %}
{% for test_project in win_test_projects %}
{% for unity_editor in test_project.unity_editors %}

{% assign project_name = test_project.project_prefix | append: '-' | concat: unity_editor.version %}

{{ project_name }}{{ test_project.key_postfix}}_Win_playmode:
name: {{ project_name }}{{ test_project.key_postfix}} on Win_playmode
{{ project_name }}{{ test_project.key_postfix}}_Win_{{ runtime_test_platform.name}}:
name: {{ project_name }}{{ test_project.key_postfix}} on Win {{ runtime_test_platform.name}}
agent:
type: {{win_test_platform.type}}
image: {{win_test_platform.image}}
Expand All @@ -164,7 +167,7 @@ win_test_projects:
- cd TestProjects/{{ project_name }} && unity-downloader-cli -u {{ unity_editor.version }} -c editor -c il2cpp --wait --published-only

# - cd TestProjects/{{ project_name }} && utr --scripting-backend=Mono2x --suite=playmode --suite=playmode --testproject=. --editor-location=.Editor --artifacts_path=test-results {{ test_project.utr_arguments }} --zero-tests-are-ok=1
- cd TestProjects/{{ project_name }} && utr --suite=playmode --testproject=. --editor-location=.Editor --artifacts_path=test-results {{ test_project.utr_arguments }}
- cd TestProjects/{{ project_name }} && utr --suite=playmode --platform={{ runtime_test_platform.name}} --testproject=. --editor-location=.Editor --artifacts_path=test-results {{ test_project.utr_arguments }}
timeout: 360000
retries: 1
artifacts:
Expand All @@ -174,6 +177,11 @@ win_test_projects:
{% endfor %}
{% endfor %}


{% endfor %}


# Trigger
test_trigger:
name: Tests Trigger (Virtual) for {{ yamato_name }}
triggers:
Expand All @@ -185,15 +193,19 @@ test_trigger:
rerun: on_new_revision

dependencies:
{% for runtime_test_platform in osx_runtime_test_platforms %}
{% for test_project in osx_test_projects %}
{% for unity_editor in test_project.unity_editors %}
{% assign project_name = test_project.project_prefix | append: '-' | concat: unity_editor.version %}
- .yamato/{{ yamato_name }}-test.yml#{{ project_name }}_OSX_Metal_playmode_mono_Linear
- .yamato/{{ yamato_name }}-test.yml#{{ project_name }}_OSX_Metal_{{ runtime_test_platform.name}}_mono
{% endfor %}
{% endfor %}
{% endfor %}
{% for runtime_test_platform in win_runtime_test_platforms %}
{% for test_project in win_test_projects %}
{% for unity_editor in test_project.unity_editors %}
{% assign project_name = test_project.project_prefix | append: '-' | concat: unity_editor.version %}
- .yamato/{{ yamato_name }}-test.yml#{{ project_name }}{{ test_project.key_postfix}}_Win_playmode
- .yamato/{{ yamato_name }}-test.yml#{{ project_name }}{{ test_project.key_postfix}}_Win_{{ runtime_test_platform.name}}
{% endfor %}
{% endfor %}
{% endfor %}
7 changes: 7 additions & 0 deletions .yamato/UnityToonShader.metafile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ platforms:
flavor: b1.medium
cmd_prefix:

win_runtime_test_platforms:
- name: Editor
- name: StandaloneWindows64

osx_runtime_test_platforms:
- name: Editor
- name: StandaloneOSX

pack_platform: &pack_platform_linux
name: linux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,23 @@
"GUID:c081bc530f560634bb5c21d4b323a7f1",
"GUID:904fa68f17c579d429af85ad9901cc6a"
],
"includePlatforms": [],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"autoReferenced": false,
"defineConstraints": [
"UNITY_TESTS_FRAMEWORK"
],
"versionDefines": [
{
"name": "com.unity.toon-graphics-test",
"expression": "",
"define": "UNITY_TESTS_FRAMEWORK"
}
],
"noEngineReferences": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"allowUnsafeCode": true,
"overrideReferences": true,
"precompiledReferences": [
"nunit.framework.dll"
],
"autoReferenced": true,
"defineConstraints": [],
"autoReferenced": false,
"defineConstraints": [
"UNITY_TESTS_FRAMEWORK"
],
"versionDefines": [
{
"name": "com.unity.render-pipelines.high-definition",
Expand All @@ -25,6 +27,11 @@
"name": "com.unity.render-pipelines.universal",
"expression": "",
"define": "UTS_TEST_USE_URP"
},
{
"name": "com.unity.toon-graphics-test",
"expression": "",
"define": "UNITY_TESTS_FRAMEWORK"
}
],
"noEngineReferences": false
Expand Down