Skip to content

Commit c709243

Browse files
Merge branch 'master' into deprecate-ppv2package
2 parents 8edd3ce + f9958b0 commit c709243

551 files changed

Lines changed: 43504 additions & 6022 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.yamato/postprocessing-osx-metal.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ PostProcessing_OSX_Metal_playmode_mono_Linear_trunk:
1111
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
1212
UTR_VERSION: "current"
1313
commands:
14-
- brew tap Unity-Technologies/homebrew-unity git@github.cds.internal.unity3d.com:unity/homebrew-unity.git
15-
- brew install Unity-Technologies/homebrew-unity/unity-downloader-cli
14+
- command: |-
15+
brew tap Unity-Technologies/homebrew-unity git@github.cds.internal.unity3d.com:unity/homebrew-unity.git;
16+
brew trust unity-technologies/unity;
17+
brew install Unity-Technologies/homebrew-unity/unity-downloader-cli;
18+
brew upgrade Unity-Technologies/homebrew-unity/unity-downloader-cli;
1619
- unity-downloader-cli --source-file unity_revision.txt -c editor -c il2cpp --wait --published-only
1720
- command: curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr
1821
retries: 2
@@ -50,8 +53,11 @@ PostProcessing_OSX_Metal_Standalone_mono_Linear_trunk:
5053
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
5154
UTR_VERSION: "current"
5255
commands:
53-
- brew tap Unity-Technologies/homebrew-unity git@github.cds.internal.unity3d.com:unity/homebrew-unity.git
54-
- brew install Unity-Technologies/homebrew-unity/unity-downloader-cli
56+
- command: |-
57+
brew tap Unity-Technologies/homebrew-unity git@github.cds.internal.unity3d.com:unity/homebrew-unity.git;
58+
brew trust unity-technologies/unity;
59+
brew install Unity-Technologies/homebrew-unity/unity-downloader-cli;
60+
brew upgrade Unity-Technologies/homebrew-unity/unity-downloader-cli;
5561
- unity-downloader-cli --source-file unity_revision.txt -c editor -c il2cpp --wait --published-only
5662
- command: curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr
5763
retries: 2
@@ -61,7 +67,7 @@ PostProcessing_OSX_Metal_Standalone_mono_Linear_trunk:
6167
- command: scp -i ~/.ssh/id_rsa_macmini ~/.ssh/id_rsa_macmini bokken@$BOKKEN_DEVICE_IP:~/.ssh/id_rsa_macmini
6268
retries: 2
6369
- command: |2-
64-
ssh -i ~/.ssh/id_rsa_macmini bokken@$BOKKEN_DEVICE_IP "export UPM_REGISTRY=https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates; GIT_BRANCH='$GIT_BRANCH' GIT_COMMIT_TIME='$GIT_COMMIT_TIME' GIT_REPOSITORY_URL='$GIT_REPOSITORY_URL' GIT_REVISION='$GIT_REVISION' YAMATO_JOBDEFINITION_FRIENDLY_NAME='$YAMATO_JOBDEFINITION_FRIENDLY_NAME' YAMATO_JOBDEFINITION_NAME='$YAMATO_JOBDEFINITION_NAME' YAMATO_JOB_ID='$YAMATO_JOB_ID' YAMATO_PROJECT_ID='$YAMATO_PROJECT_ID' YAMATO_PROJECT_NAME='$YAMATO_PROJECT_NAME' ~/Graphics/utr --artifacts_path=/Users/bokken/Graphics/TestProjects/PostProcessing_Tests/test-results --editor-location=/Users/bokken/Graphics/.Editor --platform=StandaloneOSX --scripting-backend=Mono2x --suite=playmode --testfilter=$TEST_FILTER --testproject=/Users/bokken/Graphics/TestProjects/PostProcessing_Tests --timeout=2400"
70+
ssh -i ~/.ssh/id_rsa_macmini bokken@$BOKKEN_DEVICE_IP "export UPM_REGISTRY=https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates; GIT_BRANCH='$GIT_BRANCH' GIT_COMMIT_TIME='$GIT_COMMIT_TIME' GIT_REPOSITORY_URL='$GIT_REPOSITORY_URL' GIT_REVISION='$GIT_REVISION' YAMATO_JOBDEFINITION_FRIENDLY_NAME='$YAMATO_JOBDEFINITION_FRIENDLY_NAME' YAMATO_JOBDEFINITION_NAME='$YAMATO_JOBDEFINITION_NAME' YAMATO_JOB_ID='$YAMATO_JOB_ID' YAMATO_PROJECT_ID='$YAMATO_PROJECT_ID' YAMATO_PROJECT_NAME='$YAMATO_PROJECT_NAME' ~/Graphics/utr --artifacts_path=/Users/bokken/Graphics/TestProjects/PostProcessing_Tests/test-results --editor-location=/Users/bokken/Graphics/.Editor --platform=StandaloneOSX --architecture=x64 --scripting-backend=Mono2x --suite=playmode --testfilter=$TEST_FILTER --testproject=/Users/bokken/Graphics/TestProjects/PostProcessing_Tests --timeout=2400"
6571
UTR_RESULT=$?
6672
scp -i ~/.ssh/id_rsa_macmini -r bokken@$BOKKEN_DEVICE_IP:/Users/bokken/Graphics/TestProjects/PostProcessing_Tests/test-results/ TestProjects/PostProcessing_Tests
6773
exit $UTR_RESULT

TestProjects/PostProcessing_Tests/Assets/CommonAssets/Scripts/PostProcessingGraphicsTests.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
public class PostProcessingGraphicsTests
99
{
1010
[UnityTest, Category("PostProcessing")]
11-
[PrebuildSetup("SetupGraphicsTestCases")]
12-
[UseGraphicsTestCases]
13-
public IEnumerator Run(GraphicsTestCase testCase)
11+
[SceneGraphicsTest("Assets/Scenes")]
12+
public IEnumerator Run(SceneGraphicsTestCase testCase)
1413
{
1514
SceneManager.LoadScene(testCase.ScenePath);
1615

@@ -30,14 +29,14 @@ public IEnumerator Run(GraphicsTestCase testCase)
3029
for (int i = 0; i < settings.WaitFrames; i++)
3130
yield return null;
3231

33-
ImageAssert.AreEqual(testCase.ReferenceImage, camera, settings.ImageComparisonSettings);
32+
ImageAssert.AreEqual(testCase.ReferenceImage.Image, camera, settings.ImageComparisonSettings);
3433
}
3534

3635
#if UNITY_EDITOR
3736
[TearDown]
3837
public void DumpImagesInEditor()
3938
{
40-
UnityEditor.TestTools.Graphics.ResultsUtility.ExtractImagesFromTestProperties(TestContext.CurrentContext.Test);
39+
// TearDown is handled automatically by the graphics test framework
4140
}
4241

4342
#endif

TestProjects/PostProcessing_Tests/Assets/CommonAssets/Scripts/Setup/SetupGraphicsTestCases.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ public class SetupGraphicsTestCases : IPrebuildSetup
44
{
55
public void Setup()
66
{
7-
// Work around case #1033694, unable to use PrebuildSetup types directly from assemblies that don't have special names.
8-
// Once that's fixed, this class can be deleted and the SetupGraphicsTestCases class in Unity.TestFramework.Graphics.Editor
9-
// can be used directly instead.
10-
UnityEditor.TestTools.Graphics.SetupGraphicsTestCases.Setup("Assets/ReferenceImages");
7+
// This setup is no longer needed as of the new Graphics Test Framework.
8+
// The setup is done automatically. If you wish to override the default settings,
9+
// use the GraphicsTestBuildSettings asset instead.
1110
}
1211
}

TestProjects/PostProcessing_Tests/Assets/ReferenceImages/Gamma/WindowsEditor/Direct3D11/None/0001_Std_Empty_Forward_LDR_NoMSAA.png.meta

Lines changed: 83 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TestProjects/PostProcessing_Tests/Assets/ReferenceImages/Gamma/WindowsEditor/Direct3D11/None/0002_Std_Empty_Forward_HDR_NoMSAA.png.meta

Lines changed: 83 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)