Skip to content

Commit 0096ba5

Browse files
authored
Convert JIT/CodeGenBringUpTests to a merged test group (#85847)
See https://github.com/markples/utils/tree/for-PR-dotnet-runtime-85847-others for ILTransform tool. As usual, I recommend viewing the commit list since it partitions the changes in a more readable way and paying more attention to manual changes. * [ILTransform -public] Make test entrypoints accessible * [ILTransform -ilfact] Main->TestEntryPoint, [Fact], remove OutputType=Exe * Manual fixes for xUnit1013 - internal methods * Add merged group * Update porting-ryujit.md with info on merged test groups
1 parent 16fc92f commit 0096ba5

File tree

805 files changed

+541
-893
lines changed

Some content is hidden

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

805 files changed

+541
-893
lines changed

docs/design/coreclr/jit/porting-ryujit.md

Lines changed: 7 additions & 4 deletions

src/tests/JIT/CodeGenBringUpTests/Add1.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
using System;
77
using System.Runtime.CompilerServices;
8+
using Xunit;
89
public class BringUpTest_Add1
910
{
1011
const int Pass = 100;
@@ -13,7 +14,8 @@ public class BringUpTest_Add1
1314
[MethodImplAttribute(MethodImplOptions.NoInlining)]
1415
public static int Add1(int x) { return x+1; }
1516

16-
public static int Main()
17+
[Fact]
18+
public static int TestEntryPoint()
1719
{
1820
int y = Add1(1);
1921
if (y == 2) return Pass;

src/tests/JIT/CodeGenBringUpTests/Add1_d.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<OutputType>Exe</OutputType>
43
<CLRTestPriority>1</CLRTestPriority>
54
</PropertyGroup>
65
<PropertyGroup>

src/tests/JIT/CodeGenBringUpTests/Add1_do.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<OutputType>Exe</OutputType>
43
<CLRTestPriority>1</CLRTestPriority>
54
</PropertyGroup>
65
<PropertyGroup>

src/tests/JIT/CodeGenBringUpTests/Add1_r.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<OutputType>Exe</OutputType>
43
<CLRTestPriority>1</CLRTestPriority>
54
</PropertyGroup>
65
<PropertyGroup>

src/tests/JIT/CodeGenBringUpTests/Add1_ro.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<OutputType>Exe</OutputType>
43
<CLRTestPriority>1</CLRTestPriority>
54
</PropertyGroup>
65
<PropertyGroup>

src/tests/JIT/CodeGenBringUpTests/And1.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
using System;
77
using System.Runtime.CompilerServices;
8+
using Xunit;
89
public class BringUpTest_And1
910
{
1011
const int Pass = 100;
@@ -13,7 +14,8 @@ public class BringUpTest_And1
1314
[MethodImplAttribute(MethodImplOptions.NoInlining)]
1415
public static int And1(int x) { return x & 1; }
1516

16-
public static int Main()
17+
[Fact]
18+
public static int TestEntryPoint()
1719
{
1820
int y = And1(17);
1921
if (y == 1) return Pass;

src/tests/JIT/CodeGenBringUpTests/And1_d.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<OutputType>Exe</OutputType>
43
<CLRTestPriority>1</CLRTestPriority>
54
</PropertyGroup>
65
<PropertyGroup>

src/tests/JIT/CodeGenBringUpTests/And1_do.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<OutputType>Exe</OutputType>
43
<CLRTestPriority>1</CLRTestPriority>
54
</PropertyGroup>
65
<PropertyGroup>

src/tests/JIT/CodeGenBringUpTests/And1_r.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<OutputType>Exe</OutputType>
43
<CLRTestPriority>1</CLRTestPriority>
54
</PropertyGroup>
65
<PropertyGroup>

0 commit comments

Comments
 (0)