mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 05:52:11 +00:00
# Conflicts: # Tests/Cosmos.Compiler.Tests.SingleEchoTest/Kernel.cs # source/Cosmos.Assembler/Assembler.cs # source/Cosmos.IL2CPU/IL/Add.cs # source/Cosmos.IL2CPU/IL/Ceq.cs # source/Cosmos.IL2CPU/IL/Cgt.cs # source/Cosmos.IL2CPU/IL/Cgt_Un.cs # source/Cosmos.IL2CPU/IL/Clt.cs # source/Cosmos.IL2CPU/IL/Clt_Un.cs # source/Cosmos.IL2CPU/IL/Conv_I2.cs # source/Cosmos.IL2CPU/IL/Conv_I4.cs # source/Cosmos.IL2CPU/IL/Conv_I8.cs # source/Cosmos.IL2CPU/IL/Conv_R4.cs # source/Cosmos.IL2CPU/IL/Conv_R_Un.cs # source/Cosmos.IL2CPU/IL/Conv_U1.cs # source/Cosmos.IL2CPU/IL/Conv_U2.cs # source/Cosmos.IL2CPU/IL/Div.cs # source/Cosmos.IL2CPU/IL/Mul.cs # source/Cosmos.IL2CPU/IL/Sub.cs
62 lines
1.8 KiB
C#
62 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Cosmos.Debug.Kernel;
|
|
using Cosmos.TestRunner;
|
|
using Sys = Cosmos.System;
|
|
|
|
namespace Cosmos.Compiler.Tests.Bcl
|
|
{
|
|
using Cosmos.Compiler.Tests.Bcl.System;
|
|
|
|
public class Kernel : Sys.Kernel
|
|
{
|
|
protected override void BeforeRun()
|
|
{
|
|
Console.WriteLine("Cosmos booted successfully. Starting BCL tests now please wait...");
|
|
}
|
|
|
|
protected override void Run()
|
|
{
|
|
try
|
|
{
|
|
mDebugger.Send("Run");
|
|
|
|
CSharp.WhileLoopTests.Execute();
|
|
ObjectTests.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();
|
|
|
|
#if false
|
|
BitConverterTest.Execute();
|
|
DecimalTest.Execute();
|
|
//BitConverterTest.Execute();
|
|
//DecimalTest.Execute();
|
|
System.Collections.Generic.ListTest.Execute();
|
|
System.Collections.Generic.QueueTest.Execute();
|
|
System.DelegatesTest.Execute();
|
|
System.UInt64Test.Execute();
|
|
#endif
|
|
TestController.Completed();
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
Console.WriteLine("Exception occurred");
|
|
Console.WriteLine(e.Message);
|
|
mDebugger.Send("Exception occurred: " + e.Message);
|
|
TestController.Failed();
|
|
}
|
|
}
|
|
}
|
|
}
|