forked from CosmosOS/Cosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request CosmosOS#1240 from quajak/feature/moreStringImpl
Add string tests and split Bcl test kernel
- Loading branch information
Showing
28 changed files
with
181 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
Tests/Kernels/Cosmos.Compiler.Tests.Bcl.System/Cosmos.Compiler.Tests.BclSystem.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.0</TargetFramework> | ||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> | ||
<NoWarn>CA2242;$(NoWarn)</NoWarn> | ||
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\..\source\Cosmos.Debug.Kernel\Cosmos.Debug.Kernel.csproj" /> | ||
<ProjectReference Include="..\..\..\source\Cosmos.System2\Cosmos.System2.csproj" /> | ||
<ProjectReference Include="..\..\Cosmos.TestRunner.TestController\Cosmos.TestRunner.TestController.csproj" /> | ||
<ProjectReference Include="..\Cosmos.Compiler.Tests.Bcl\Cosmos.Compiler.Tests.Bcl.csproj" /> | ||
</ItemGroup> | ||
|
||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
using System; | ||
using System.Collections; | ||
|
||
using Cosmos.TestRunner; | ||
using Sys = Cosmos.System; | ||
|
||
using Cosmos.Compiler.Tests.Bcl.CSharp; | ||
|
||
namespace Cosmos.Compiler.Tests.Bcl.System | ||
{ | ||
public class Kernel : Sys.Kernel | ||
{ | ||
protected override void BeforeRun() | ||
{ | ||
Console.WriteLine("Cosmos booted successfully. Starting BCL System tests now please wait..."); | ||
} | ||
|
||
protected override void Run() | ||
{ | ||
try | ||
{ | ||
mDebugger.Send("Run"); | ||
|
||
|
||
// System | ||
ObjectTests.Execute(); | ||
ArrayTests.Execute(); | ||
StringTest.Execute(); | ||
ByteTest.Execute(); | ||
SByteTest.Execute(); | ||
Int16Test.Execute(); | ||
UInt16Test.Execute(); | ||
Int32Test.Execute(); | ||
UInt32Test.Execute(); | ||
Int64Test.Execute(); | ||
UInt64Test.Execute(); | ||
CharTest.Execute(); | ||
BooleanTest.Execute(); | ||
SingleTest.Execute(); | ||
DoubleTest.Execute(); | ||
MathTest.Execute(); | ||
ConvertTests.Execute(); | ||
DateTimeTests.Execute(); | ||
TimeSpanTests.Execute(); | ||
|
||
|
||
TestController.Completed(); | ||
} | ||
catch (Exception e) | ||
{ | ||
mDebugger.Send("Exception occurred: " + e.Message); | ||
mDebugger.Send(e.Message); | ||
Console.WriteLine("Exception occurred"); | ||
Console.WriteLine(e.Message); | ||
TestController.Failed(); | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters