Skip to content
Permalink
Browse files

New Unit Test System (#497)

* - New Unit Test System (faster!)
  • Loading branch information...
tgiphil committed Sep 4, 2018
1 parent 1811d0c commit a9851cfb4552abe05d9d40f47b98f1030afcf304
Showing with 744 additions and 9,550 deletions.
  1. +30 −78 Source/MOSA.sln
  2. +4 −2 Source/Mosa.TestWorld.ARMv6/Boot.cs
  3. +3 −3 Source/Mosa.TestWorld.ARMv6/Mosa.TestWorld.ARMv6.csproj
  4. +2 −2 Source/Mosa.TestWorld.x86/Mosa.TestWorld.x86.csproj
  5. +1 −1 Source/Mosa.TestWorld.x86/Tests/ComparisonTest.cs
  6. +1 −1 Source/Mosa.TestWorld.x86/Tests/DelegateTest.cs
  7. +1 −1 Source/Mosa.TestWorld.x86/Tests/OtherTest.cs
  8. +0 −23 Source/Mosa.Tools.Qemu.Package/Mosa.Tools.Qemu.Package.nuspec
  9. +0 −21 Source/Mosa.UnitTest.Collection.xUnit/ArrayFixture.cs
  10. +0 −93 Source/Mosa.UnitTest.Collection.xUnit/ArrayLayoutFixture.cs
  11. +0 −158 Source/Mosa.UnitTest.Collection.xUnit/BaseUnitTest.cs
  12. +0 −78 Source/Mosa.UnitTest.Collection.xUnit/BooleanFixture.cs
  13. +0 −172 Source/Mosa.UnitTest.Collection.xUnit/BoxingFixture.cs
  14. +0 −98 Source/Mosa.UnitTest.Collection.xUnit/CallFixture.cs
  15. +0 −19 Source/Mosa.UnitTest.Collection.xUnit/CallFixture.tt
  16. +0 −100 Source/Mosa.UnitTest.Collection.xUnit/CallOrderFixture.cs
  17. +0 −21 Source/Mosa.UnitTest.Collection.xUnit/CallVirtualFixture.cs
  18. +0 −163 Source/Mosa.UnitTest.Collection.xUnit/CharFixture.cs
  19. +0 −551 Source/Mosa.UnitTest.Collection.xUnit/ComparisonFixture.cs
  20. +0 −24 Source/Mosa.UnitTest.Collection.xUnit/ComparisonFixture.tt
  21. +0 −51 Source/Mosa.UnitTest.Collection.xUnit/CompilerFixture.cs
  22. +0 −137 Source/Mosa.UnitTest.Collection.xUnit/DelegateFixture.cs
  23. +0 −33 Source/Mosa.UnitTest.Collection.xUnit/DerivedNewObjectFixture.cs
  24. +0 −166 Source/Mosa.UnitTest.Collection.xUnit/DoubleFixture.cs
  25. +0 −1,934 Source/Mosa.UnitTest.Collection.xUnit/EnumFixture.cs
  26. +0 −48 Source/Mosa.UnitTest.Collection.xUnit/EnumFixture.tt
  27. +0 −135 Source/Mosa.UnitTest.Collection.xUnit/ExceptionHandlingFixture.cs
  28. +0 −16 Source/Mosa.UnitTest.Collection.xUnit/FibonacciFixture.cs
  29. +0 −57 Source/Mosa.UnitTest.Collection.xUnit/ForeachFixture.cs
  30. +0 −21 Source/Mosa.UnitTest.Collection.xUnit/ForeachFixture.tt
  31. +0 −92 Source/Mosa.UnitTest.Collection.xUnit/GenericCallFixture.cs
  32. +0 −36 Source/Mosa.UnitTest.Collection.xUnit/GenericInterfaceFixture.cs
  33. +0 −27 Source/Mosa.UnitTest.Collection.xUnit/GenericMethodFixture.cs
  34. +0 −7 Source/Mosa.UnitTest.Collection.xUnit/GlobalSuppressions.cs
  35. +0 −186 Source/Mosa.UnitTest.Collection.xUnit/Int16Fixture.cs
  36. +0 −179 Source/Mosa.UnitTest.Collection.xUnit/Int32Fixture.cs
  37. +0 −200 Source/Mosa.UnitTest.Collection.xUnit/Int64Fixture.cs
  38. +0 −186 Source/Mosa.UnitTest.Collection.xUnit/Int8Fixture.cs
  39. +0 −51 Source/Mosa.UnitTest.Collection.xUnit/InterfaceFixture.cs
  40. +0 −149 Source/Mosa.UnitTest.Collection.xUnit/IsInstFixture.cs
  41. +0 −188 Source/Mosa.UnitTest.Collection.xUnit/LdargaFixture.cs
  42. +0 −122 Source/Mosa.UnitTest.Collection.xUnit/LdlocaFixture.cs
  43. +0 −23 Source/Mosa.UnitTest.Collection.xUnit/LdlocaFixture.tt
  44. +0 −75 Source/Mosa.UnitTest.Collection.xUnit/LinkedListFixture.cs
  45. +0 −99 Source/Mosa.UnitTest.Collection.xUnit/ListFixture.cs
  46. +0 −199 Source/Mosa.UnitTest.Collection.xUnit/Mosa.UnitTest.Collection.xUnit.csproj
  47. +0 −21 Source/Mosa.UnitTest.Collection.xUnit/NewObjectFixture.cs
  48. +0 −21 Source/Mosa.UnitTest.Collection.xUnit/NullCheckOptimizationFixture.cs
  49. +0 −100 Source/Mosa.UnitTest.Collection.xUnit/OptimizationFixture.cs
  50. +0 −38 Source/Mosa.UnitTest.Collection.xUnit/Properties/AssemblyInfo.cs
  51. +0 −29 Source/Mosa.UnitTest.Collection.xUnit/RegisterAllocatorFixture.cs
  52. +0 −135 Source/Mosa.UnitTest.Collection.xUnit/RemFixture.cs
  53. +0 −167 Source/Mosa.UnitTest.Collection.xUnit/SingleFixture.cs
  54. +0 −189 Source/Mosa.UnitTest.Collection.xUnit/StaticFieldFixture.cs
  55. +0 −57 Source/Mosa.UnitTest.Collection.xUnit/StringFixture.cs
  56. +0 −154 Source/Mosa.UnitTest.Collection.xUnit/StructureFixture.cs
  57. +0 −28 Source/Mosa.UnitTest.Collection.xUnit/StructureFixture.tt
  58. +0 −88 Source/Mosa.UnitTest.Collection.xUnit/SwitchFixture.cs
  59. +0 −31 Source/Mosa.UnitTest.Collection.xUnit/SwitchFixture.tt
  60. +0 −30 Source/Mosa.UnitTest.Collection.xUnit/TestFixture.cs
  61. +0 −186 Source/Mosa.UnitTest.Collection.xUnit/UInt16Fixture.cs
  62. +0 −186 Source/Mosa.UnitTest.Collection.xUnit/UInt32Fixture.cs
  63. +0 −186 Source/Mosa.UnitTest.Collection.xUnit/UInt64Fixture.cs
  64. +0 −186 Source/Mosa.UnitTest.Collection.xUnit/UInt8Fixture.cs
  65. +0 −41 Source/Mosa.UnitTest.Collection.xUnit/UnitTestFixture.cs
  66. +0 −81 Source/Mosa.UnitTest.Collection.xUnit/ValueTypeFixture.cs
  67. +0 −113 Source/Mosa.UnitTest.Collection.xUnit/WhileFixture.cs
  68. +0 −11 Source/Mosa.UnitTest.Collection.xUnit/packages.config
  69. +0 −86 Source/Mosa.UnitTest.Engine/Mosa.UnitTest.Engine.csproj
  70. +0 −32 Source/Mosa.UnitTest.Engine/Properties/AssemblyInfo.cs
  71. +0 −806 Source/Mosa.UnitTest.Engine/UnitTestEngine.cs
  72. +0 −251 Source/Mosa.UnitTest.Engine/UnitTestRequest.cs
  73. +0 −105 Source/Mosa.UnitTest.Numbers/Mosa.UnitTest.Numbers.csproj
  74. +0 −34 Source/Mosa.UnitTest.Numbers/Properties/AssemblyInfo.cs
  75. +2 −1 Source/Mosa.UnitTests.x86/Boot.cs
  76. +3 −3 Source/Mosa.UnitTests.x86/Mosa.UnitTests.x86.csproj
  77. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/ArrayLayoutTests.cs
  78. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/ArrayTest.cs
  79. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/BooleanTests.cs
  80. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/BoxingTests.cs
  81. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/BoxingTests.tt
  82. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/CallOrderTests.cs
  83. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/CallTests.cs
  84. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/CallTests.tt
  85. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/CallVirtualTests.cs
  86. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/CharTests.cs
  87. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/ComparisonTests.cs
  88. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/ComparisonTests.tt
  89. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/CompilerTests.cs
  90. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/ConvTests.cs
  91. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/ConvTests.tt
  92. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/DelegateTests.cs
  93. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/DerivedNewObjectTests.cs
  94. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/DoubleTests.cs
  95. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/EnumTests.cs
  96. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/EnumTests.tt
  97. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/ExceptionHandlingTests.cs
  98. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/FibonacciTests.cs
  99. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/ForeachTests.cs
  100. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/ForeachTests.tt
  101. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/GenericCallTests.cs
  102. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/GenericCallTests.tt
  103. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/GenericInterfaceTests.cs
  104. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/GenericMethodTests.cs
  105. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/InitStructTests.cs
  106. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/InitStructTests.tt
  107. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/Int16Tests.cs
  108. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/Int32Tests.cs
  109. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/Int64Tests.cs
  110. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/Int8Tests.cs
  111. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/InterfaceTests.cs
  112. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/IsInstTests.cs
  113. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/LargeSwitchTest.cs
  114. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/LdargaTests.cs
  115. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/LdargaTests.tt
  116. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/LdlocaTests.cs
  117. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/LdlocaTests.tt
  118. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/LinkedList.cs
  119. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/LinkedListNode.cs
  120. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/LinkedListTests.cs
  121. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/ListTests.cs
  122. +2 −2 ...{Mosa.UnitTest.Collection/Mosa.UnitTest.Collection.csproj → Mosa.UnitTests/Mosa.UnitTests.csproj}
  123. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/MosaUnitTestAttribute.cs
  124. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/NewObjectTests.cs
  125. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/NullCheckOptimizationTests.cs
  126. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/OptimizationTests.cs
  127. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/QuickSort.cs
  128. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/RegisterAllocatorTests.cs
  129. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/RemTests.cs
  130. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/SingleTests.cs
  131. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/SpecificTests.cs
  132. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/StaticFieldTests.cs
  133. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/StaticFieldTests.tt
  134. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/StringTests.cs
  135. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/StructTests.cs
  136. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/StructTests.tt
  137. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/SwitchTests.cs
  138. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/SwitchTests.tt
  139. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/UInt16Tests.cs
  140. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/UInt32Tests.cs
  141. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/UInt64Tests.cs
  142. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/UInt8Tests.cs
  143. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/ValueTypeTests.cs
  144. +1 −1 Source/{Mosa.UnitTest.Collection → Mosa.UnitTests}/WhileTests.cs
  145. +1 −1 Source/Mosa.Utility.DebugEngine/DebugServerEngine.cs
  146. +22 −11 ...ebug/Mosa.Workspace.UnitTest.Debug.csproj → Mosa.Utility.UnitTests/Mosa.Utility.UnitTests.csproj}
  147. +2 −2 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/B.cs
  148. +1 −1 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/C.cs
  149. +2 −3 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/Combinations.cs
  150. +1 −1 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/I1.cs
  151. +1 −1 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/I2.cs
  152. +1 −1 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/I4.cs
  153. +1 −1 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/I8.cs
  154. +1 −1 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/R4.cs
  155. +1 −1 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/R8.cs
  156. +1 −1 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/Series.cs
  157. +1 −1 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/Series2.cs
  158. +1 −1 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/U1.cs
  159. +1 −1 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/U2.cs
  160. +1 −1 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/U4.cs
  161. +1 −1 Source/{Mosa.UnitTest.Numbers → Mosa.Utility.UnitTests/Numbers}/U8.cs
  162. +1 −3 Source/{Mosa.Workspace.UnitTest.Debug → Mosa.Utility.UnitTests}/Program.cs
  163. +2 −2 Source/{Mosa.Workspace.UnitTest.Debug → Mosa.Utility.UnitTests}/Properties/AssemblyInfo.cs
  164. +2 −2 Source/{Mosa.Workspace.UnitTest.Debug → Mosa.Utility.UnitTests}/UnitTest.cs
  165. +534 −0 Source/Mosa.Utility.UnitTests/UnitTestEngine.cs
  166. +1 −1 Source/{Mosa.Workspace.UnitTest.Debug → Mosa.Utility.UnitTests}/UnitTestEngineV2.cs
  167. +4 −2 Source/{Mosa.Workspace.UnitTest.Debug → Mosa.Utility.UnitTests}/UnitTestHelper.cs
  168. +1 −1 Source/{Mosa.Workspace.UnitTest.Debug → Mosa.Utility.UnitTests}/UnitTestStatus.cs
  169. +42 −9 Source/{Mosa.Workspace.UnitTest.Debug → Mosa.Utility.UnitTests}/UnitTestSystem.cs
  170. 0 Source/{Mosa.Workspace.UnitTest.Debug → Mosa.Utility.UnitTests}/app.config
  171. +1 −9 Tests/RunAllUnitTests.bat

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,9 +1,11 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.UnitTests;

namespace Mosa.TestWorld.ARMv6
{
/// <summary>
///
/// Boot
/// </summary>
public static class Boot
{
@@ -18,7 +20,7 @@ public static void Main()

public static void Test()
{
Mosa.UnitTest.Collection.UInt32Tests.AddU4U4(1, 2);
UInt32Tests.AddU4U4(1, 2);
}
}
}
@@ -84,9 +84,9 @@
<Project>{77961864-db33-4189-804f-d774022c96e2}</Project>
<Name>Mosa.Runtime</Name>
</ProjectReference>
<ProjectReference Include="..\Mosa.UnitTest.Collection\Mosa.UnitTest.Collection.csproj">
<Project>{067aab6b-447a-45ba-9e0d-dfea886b4f69}</Project>
<Name>Mosa.UnitTest.Collection</Name>
<ProjectReference Include="..\Mosa.UnitTests\Mosa.UnitTests.csproj">
<Project>{067AAB6B-447A-45BA-9E0D-DFEA886B4F69}</Project>
<Name>Mosa.UnitTests</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
@@ -118,9 +118,9 @@
<Project>{77961864-db33-4189-804f-d774022c96e2}</Project>
<Name>Mosa.Runtime</Name>
</ProjectReference>
<ProjectReference Include="..\Mosa.UnitTest.Collection\Mosa.UnitTest.Collection.csproj">
<ProjectReference Include="..\Mosa.UnitTests\Mosa.UnitTests.csproj">
<Project>{067AAB6B-447A-45BA-9E0D-DFEA886B4F69}</Project>
<Name>Mosa.UnitTest.Collection</Name>
<Name>Mosa.UnitTests</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
@@ -1,6 +1,6 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.UnitTest.Collection;
using Mosa.UnitTests;

namespace Mosa.TestWorld.x86.Tests
{
@@ -1,6 +1,6 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.UnitTest.Collection;
using Mosa.UnitTests;

namespace Mosa.TestWorld.x86.Tests
{
@@ -325,7 +325,7 @@ public uint AddressOfThis

public static bool BoxTestEqualsI4()
{
return Mosa.UnitTest.Collection.BoxingTests.EqualsI4(10);
return Mosa.UnitTests.BoxingTests.EqualsI4(10);
}
}

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit a9851cf

Please sign in to comment.
You can’t perform that action at this time.