Skip to content

Commit 6805ee9

Browse files
giorgospetkakisEvergreen
authored andcommitted
Upgrade UPM-CI checks to UPM-PVP Checks for Graphics Test Packages
1 parent 3245256 commit 6805ee9

10 files changed

+175
-0
lines changed

Tests/SRPTests/Projects/HDRP_PerformanceTests/Assets/PerformanceTests/Editor/PlayStation.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System.Collections.Generic;
2+
using NUnit.Framework;
3+
using Unity.PerformanceTesting;
4+
using UnityEditor;
5+
using UnityEditor.TestTools;
6+
7+
namespace UnityEngine.TestTools.Graphics.Performance.Editor.StaticAnalysis
8+
{
9+
public class EditorStaticAnalysisTestPlayStation
10+
{
11+
const int StaticAnalysisTimeout = 20 * 60 * 1000; // 20 min for shader compilation
12+
13+
static IEnumerable<EditorStaticAnalysisTests.StaticAnalysisEntry> GetStaticAnalysisEntriesPlayStation() =>
14+
EditorStaticAnalysisTests.GetStaticAnalysisEntries(BuildTarget.PS4);
15+
16+
[Test, Timeout(StaticAnalysisTimeout), Version("1"), Performance]
17+
[RequirePlatformSupport(BuildTarget.PS4)]
18+
public void StaticAnalysisPlayStation(
19+
[ValueSource(nameof(GetStaticAnalysisEntriesPlayStation))]
20+
EditorStaticAnalysisTests.StaticAnalysisEntry entries
21+
) => EditorStaticAnalysisTests.StaticAnalysisExecute(entries);
22+
}
23+
}

Tests/SRPTests/Projects/HDRP_PerformanceTests/Assets/PerformanceTests/Editor/PlayStation/EditorStaticAnalysisTestPlayStation.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "UnityEngine.TestTools.Graphics.Performance.Editor.StaticAnalysis.PlayStation",
3+
"rootNamespace": "",
4+
"references": [
5+
"GUID:91836b14885b8a34196f4aa8303d7793",
6+
"GUID:27619889b8ba8c24980f49ee34dbb44a",
7+
"GUID:0acc523941302664db1f4e527237feb3",
8+
"GUID:28e5f1c81336e0a45b3a1bf37e997b43",
9+
"GUID:c8ae5dd6a09ec7449b58a77c5361f6e0",
10+
"GUID:c0dd0d10738d4ad4a9de57c559d0ca1b"
11+
],
12+
"includePlatforms": [
13+
"Editor"
14+
],
15+
"excludePlatforms": [],
16+
"allowUnsafeCode": true,
17+
"overrideReferences": true,
18+
"precompiledReferences": [
19+
"nunit.framework.dll"
20+
],
21+
"autoReferenced": false,
22+
"defineConstraints": [
23+
"UNITY_TESTS_FRAMEWORK",
24+
"SHADERANALYSIS_SUPPORT"
25+
],
26+
"versionDefines": [
27+
{
28+
"name": "com.unity.test-framework.graphics.performance",
29+
"expression": "",
30+
"define": "UNITY_TESTS_FRAMEWORK"
31+
},
32+
{
33+
"name": "com.unity.shaderanalysis",
34+
"expression": "0.0",
35+
"define": "SHADERANALYSIS_SUPPORT"
36+
}
37+
],
38+
"noEngineReferences": false
39+
}

Tests/SRPTests/Projects/HDRP_PerformanceTests/Assets/PerformanceTests/Editor/PlayStation/UnityEngine.TestTools.Graphics.Performance.Editor.StaticAnalysis.PlayStation.asmdef.meta

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

Tests/SRPTests/Projects/HDRP_PerformanceTests/Assets/PerformanceTests/Editor/Xbox.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System.Collections.Generic;
2+
using NUnit.Framework;
3+
using Unity.PerformanceTesting;
4+
using UnityEditor;
5+
using UnityEditor.TestTools;
6+
7+
namespace UnityEngine.TestTools.Graphics.Performance.Editor.StaticAnalysis
8+
{
9+
public class EditorStaticAnalysisTestXbox
10+
{
11+
const int StaticAnalysisTimeout = 10 * 60 * 1000; // 10 min for shader compilation
12+
13+
static IEnumerable<EditorStaticAnalysisTests.StaticAnalysisEntry> GetStaticAnalysisEntriesXbox() =>
14+
EditorStaticAnalysisTests.GetStaticAnalysisEntries(BuildTarget.XboxOne);
15+
16+
[Test, Timeout(StaticAnalysisTimeout), Version("1"), Performance]
17+
[RequirePlatformSupport(BuildTarget.XboxOne)]
18+
public void StaticAnalysisXboxOne(
19+
[ValueSource(nameof(GetStaticAnalysisEntriesXbox))]
20+
EditorStaticAnalysisTests.StaticAnalysisEntry entry
21+
) => EditorStaticAnalysisTests.StaticAnalysisExecute(entry);
22+
}
23+
}

Tests/SRPTests/Projects/HDRP_PerformanceTests/Assets/PerformanceTests/Editor/Xbox/EditorStaticAnalysisTestXbox.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "UnityEngine.TestTools.Graphics.Performance.Editor.StaticAnalysis.Xbox",
3+
"rootNamespace": "",
4+
"references": [
5+
"GUID:91836b14885b8a34196f4aa8303d7793",
6+
"GUID:27619889b8ba8c24980f49ee34dbb44a",
7+
"GUID:0acc523941302664db1f4e527237feb3",
8+
"GUID:28e5f1c81336e0a45b3a1bf37e997b43",
9+
"GUID:c8ae5dd6a09ec7449b58a77c5361f6e0",
10+
"GUID:c0dd0d10738d4ad4a9de57c559d0ca1b"
11+
],
12+
"includePlatforms": [
13+
"Editor"
14+
],
15+
"excludePlatforms": [],
16+
"allowUnsafeCode": true,
17+
"overrideReferences": true,
18+
"precompiledReferences": [
19+
"nunit.framework.dll"
20+
],
21+
"autoReferenced": false,
22+
"defineConstraints": [
23+
"UNITY_TESTS_FRAMEWORK"
24+
],
25+
"versionDefines": [
26+
{
27+
"name": "com.unity.test-framework.graphics.performance",
28+
"expression": "",
29+
"define": "UNITY_TESTS_FRAMEWORK"
30+
},
31+
{
32+
"name": "com.unity.shaderanalysis",
33+
"expression": "0.0",
34+
"define": "SHADERANALYSIS_SUPPORT"
35+
}
36+
],
37+
"noEngineReferences": false
38+
}

Tests/SRPTests/Projects/HDRP_PerformanceTests/Assets/PerformanceTests/Editor/Xbox/UnityEngine.TestTools.Graphics.Performance.Editor.StaticAnalysis.Xbox.asmdef.meta

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

0 commit comments

Comments
 (0)