Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
38af9f2
Removing repeated test
BrianBohe Jan 20, 2023
6338b17
Removing duplicated csproj files
BrianBohe Feb 3, 2023
6b7fea6
Manually removing unused main args
BrianBohe Jan 20, 2023
cb95d1b
Persisting cs test args for local runs
BrianBohe Jan 20, 2023
916505d
Removing unused il test args
BrianBohe Jan 27, 2023
86fdf0a
Cleaning up il tests namespace doble uses
BrianBohe Jan 27, 2023
9d4d14f
Cleaning up few test ilproj files
BrianBohe Jan 27, 2023
710237b
Manually renaming ldfldstatic1_il_r
BrianBohe Feb 3, 2023
cc12b67
Unifying target windows and unix csproj
BrianBohe Feb 13, 2023
fa774a7
Running cs-main tool on JIT/Directed
BrianBohe Feb 21, 2023
13510cf
Running ILTransform -p
BrianBohe Feb 22, 2023
dc056ae
Fixing debugging/debuginfo tests
BrianBohe Feb 3, 2023
b759840
Running ILTransform -n 3 times
BrianBohe Feb 22, 2023
19eb64d
Running ILTransform -m
BrianBohe Feb 22, 2023
a37f04c
Running ILTransform -a
BrianBohe Feb 22, 2023
3a43139
Running ILTransform -prociso
BrianBohe Feb 22, 2023
78295a2
Running ILTransform -collapse-main-sig
BrianBohe Feb 22, 2023
4cd78a3
Running ILTransform -public
BrianBohe Feb 22, 2023
fdeeba1
Removing duplicated public
BrianBohe Feb 14, 2023
9cfe481
Fixing accessibility after exposing main class
BrianBohe Feb 3, 2023
9fe2503
Adding missing public to class definitions
BrianBohe Feb 22, 2023
c7e589f
Running ILTransform -sr
BrianBohe Feb 22, 2023
f85d172
Running ILTransform -ilfact
BrianBohe Feb 22, 2023
7a9e5ee
Adding JIT/Directed merge tests wrapper
BrianBohe Feb 10, 2023
4da1a66
Patching merge wrapper generator code
BrianBohe Feb 21, 2023
7888d87
Wrapping global static main with public class
BrianBohe Feb 22, 2023
7d621f6
Renaming il test class
BrianBohe Feb 22, 2023
e380946
Updating issues.targets after merging JIT\Directed
BrianBohe Feb 22, 2023
1205592
Updating more_tails.cs and respective il
BrianBohe Feb 24, 2023
ffd566c
Fixing accesibility problems after wrapper generator updates
BrianBohe Feb 27, 2023
15d732a
Fixing Build.props name format
BrianBohe Mar 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,15 @@ private static string GenerateStandaloneSimpleTestRunner(ImmutableArray<ITestInf
ITestReporterWrapper reporter = new NoTestReporting();
StringBuilder builder = new();
builder.AppendLine(string.Join("\n", aliasMap.Values.Where(alias => alias != "global").Select(alias => $"extern alias {alias};")));
builder.AppendLine("namespace __GeneratedMainWrapper;");
builder.AppendLine("class __GeneratedMainWrapper {");
builder.AppendLine("public static int Main() {");
builder.AppendLine("try {");
builder.AppendLine(string.Join("\n", testInfos.Select(m => m.GenerateTestExecution(reporter))));
builder.AppendLine("} catch(System.Exception ex) { System.Console.WriteLine(ex.ToString()); return 101; }");
builder.AppendLine("return 100;");
builder.AppendLine("}");
builder.AppendLine("}");
return builder.ToString();
}

Expand Down
1 change: 0 additions & 1 deletion src/tests/JIT/Directed/Arrays/Complex1.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion src/tests/JIT/Directed/Arrays/Complex2.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
4 changes: 3 additions & 1 deletion src/tests/JIT/Directed/Arrays/LoopCloning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
using Xunit;

public class Program
{
public static unsafe int Main()
[Fact]
public static unsafe int TestEntryPoint()
{
int result = 0;
try {
Expand Down
1 change: 0 additions & 1 deletion src/tests/JIT/Directed/Arrays/LoopCloning.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion src/tests/JIT/Directed/Arrays/Simple1.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion src/tests/JIT/Directed/Arrays/Simple2.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
8 changes: 5 additions & 3 deletions src/tests/JIT/Directed/Arrays/complex1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//

using System;
using Xunit;

// Do a complex 5 dimensional Jagged array.
struct Complex
Expand All @@ -13,10 +14,11 @@ public void mul_em()
c = a * b;
}
};
public
class Complex_Array_Test

public class Complex_Array_Test
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
Console.WriteLine("Starting...");
int SIZE = 10;
Expand Down
6 changes: 4 additions & 2 deletions src/tests/JIT/Directed/Arrays/complex2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//

using System;
using Xunit;
public struct Yak
{
public Int32 a;
Expand All @@ -16,13 +17,14 @@ public void Do_Something()
}


internal class Complex2_Array_Test
public class Complex2_Array_Test
{
public static void test(Yak[,,,,,,] Odd_Variable)
{
Console.Write(Odd_Variable.Length);
}
public static int Main()
[Fact]
public static int TestEntryPoint()
{
Console.WriteLine("Starting...");
int SIZE = 2;
Expand Down
6 changes: 4 additions & 2 deletions src/tests/JIT/Directed/Arrays/nintindexoutofrange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
//
using System;
using System.Runtime.CompilerServices;
using Xunit;

class NintIndexOutOfRangeTest
public class NintIndexOutOfRangeTest
{
[MethodImpl(MethodImplOptions.NoInlining)]
static void Stelem_Ref(object[] arr, nint i, Object value)
Expand All @@ -20,7 +21,8 @@ static void LdElemA(object[] arr, nint i)
LdElemATestHelper(ref arr[i]);
}

public static unsafe int Main()
[Fact]
public static unsafe int TestEntryPoint()
{
long longIndex = ((long)1) << 32;
nint index = (nint)longIndex;
Expand Down
1 change: 0 additions & 1 deletion src/tests/JIT/Directed/Arrays/nintindexoutofrange.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>0</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
8 changes: 5 additions & 3 deletions src/tests/JIT/Directed/Arrays/simple1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
//

using System;
public
using Xunit;

// Do a simple 5 dimensional Jagged array.

class Simple_Array_Test
public class Simple_Array_Test
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
Console.WriteLine("Starting...");
int SIZE = 10;
Expand Down
6 changes: 4 additions & 2 deletions src/tests/JIT/Directed/Arrays/simple2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
//

using System;
using Xunit;

internal class Simple2_Array_Test
public class Simple2_Array_Test
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
Console.WriteLine("Starting...");
int SIZE = 10;
Expand Down
6 changes: 4 additions & 2 deletions src/tests/JIT/Directed/BitTest/BitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

using System;
using System.Runtime.CompilerServices;
using Xunit;

class Program
public class Program
{
[MethodImpl(MethodImplOptions.NoInlining)]
static bool I1_BT_reg_reg(sbyte x, int y) => (x & (1 << y)) != 0;
Expand Down Expand Up @@ -37,7 +38,8 @@ class Program
[MethodImpl(MethodImplOptions.NoInlining)]
static bool I8_BT_mem_reg(ref long x, int y) => (x & (1L << y)) != 0;

static int Main()
[Fact]
public static int TestEntryPoint()
{
sbyte i1min = sbyte.MinValue;
sbyte i1one = 1;
Expand Down
1 change: 0 additions & 1 deletion src/tests/JIT/Directed/BitTest/BitTest.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@

using System;
using System.Runtime.CompilerServices;
using Xunit;

namespace Test
{
static class App
public static class App
{
static int Main()
[Fact]
public static int TestEntryPoint()
{
new DerivedClass<int>(3);
new DerivedClass<int>(8);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@

using System;
using System.Runtime.CompilerServices;
using Xunit;

namespace Test
{
static class App
public static class App
{
static int Main()
[Fact]
public static int TestEntryPoint()
{
new DerivedClass<int>("NotNull");
new DerivedClass<int>(null);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@

using System;
using System.Runtime.CompilerServices;
using Xunit;

namespace Test
{
static class App
public static class App
{
static int Main()
[Fact]
public static int TestEntryPoint()
{
new DerivedClass<int>(7);
return 100;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@

using System;
using System.Runtime.CompilerServices;
using Xunit;

namespace Test
{
static class App
public static class App
{
static int Main()
[Fact]
public static int TestEntryPoint()
{
new DerivedClass<int>(7);
return 100;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@

using System;
using System.Runtime.CompilerServices;
using Xunit;

namespace Test
{
static class App
public static class App
{
static int Main()
[Fact]
public static int TestEntryPoint()
{
new DerivedClass<Reftype>();
new DerivedClass<Valuetype>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@

using System;
using System.Runtime.CompilerServices;
using Xunit;

namespace Test
{
static class App
public static class App
{
static int Main()
[Fact]
public static int TestEntryPoint()
{
new DerivedClass<int>(3);
new DerivedClass<int>(8);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@

using System;
using System.Runtime.CompilerServices;
using Xunit;

namespace Test
{
static class App
public static class App
{
static int Main()
[Fact]
public static int TestEntryPoint()
{
new DerivedClass<int>("NotNull");
new DerivedClass<int>(null);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@

using System;
using System.Runtime.CompilerServices;
using Xunit;

namespace Test
{
static class App
public static class App
{
static int Main()
[Fact]
public static int TestEntryPoint()
{
new DerivedClass<int>(7);
return 100;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Loading