mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-09 17:52:50 +00:00
Merge remote-tracking branch 'refs/remotes/CosmosOS/master'
This commit is contained in:
commit
73e324bf2b
4 changed files with 9 additions and 42 deletions
|
|
@ -94,9 +94,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="MyEngine.cs" />
|
<Compile Include="MyEngine.cs" />
|
||||||
<Compile Include="MyEngineAttribute.cs" />
|
|
||||||
<Compile Include="MySource.cs" />
|
<Compile Include="MySource.cs" />
|
||||||
<Compile Include="MyTest.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
@ -116,11 +114,11 @@
|
||||||
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
|
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
<Target Name="BeforeBuild">
|
<Target Name="BeforeBuild">
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="AfterBuild">
|
<Target Name="AfterBuild">
|
||||||
</Target>
|
</Target>
|
||||||
-->
|
-->
|
||||||
</Project>
|
</Project>
|
||||||
|
|
@ -9,15 +9,15 @@ namespace DebugCompiler
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class RunKernels
|
public class RunKernels
|
||||||
{
|
{
|
||||||
[Test]
|
[TestCaseSource(typeof(MySource), nameof(MySource.ProvideData))]
|
||||||
public void Test([ValueSource(typeof(MySource), nameof(MySource.ProvideData))] Type kernelToRun)
|
public void Test(Type kernelToRun)
|
||||||
{
|
{
|
||||||
Environment.CurrentDirectory = Path.GetDirectoryName(typeof(RunKernels).Assembly.Location);
|
Environment.CurrentDirectory = Path.GetDirectoryName(typeof(RunKernels).Assembly.Location);
|
||||||
|
|
||||||
var xEngine = new Engine();
|
var xEngine = new Engine();
|
||||||
// Sets the time before an error is registered. For example if set to 60 then if a kernel runs for more than 60 seconds then
|
// Sets the time before an error is registered. For example if set to 60 then if a kernel runs for more than 60 seconds then
|
||||||
// that kernel will be marked as a failiure and terminated
|
// that kernel will be marked as a failiure and terminated
|
||||||
xEngine.AllowedSecondsInKernel = 300;
|
xEngine.AllowedSecondsInKernel = 600;
|
||||||
|
|
||||||
// If you want to test only specific platforms, add them to the list, like next line. By default, all platforms are run.
|
// If you want to test only specific platforms, add them to the list, like next line. By default, all platforms are run.
|
||||||
xEngine.RunTargets.Add(RunTargetEnum.Bochs);
|
xEngine.RunTargets.Add(RunTargetEnum.Bochs);
|
||||||
|
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using NUnit.Framework;
|
|
||||||
using NUnit.Framework.Interfaces;
|
|
||||||
using NUnit.Framework.Internal;
|
|
||||||
|
|
||||||
namespace DebugCompiler
|
|
||||||
{
|
|
||||||
[AttributeUsage(AttributeTargets.Class)]
|
|
||||||
public class MyEngineAttribute: NUnitAttribute, IFixtureBuilder
|
|
||||||
{
|
|
||||||
public IEnumerable<TestSuite> BuildFrom(ITypeInfo typeInfo)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
using NUnit.Framework;
|
|
||||||
|
|
||||||
namespace DebugCompiler
|
|
||||||
{
|
|
||||||
[TestFixture]
|
|
||||||
public class MyTest
|
|
||||||
{
|
|
||||||
[Test]
|
|
||||||
public void Test()
|
|
||||||
{
|
|
||||||
Assert.IsTrue(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue