Merge remote-tracking branch 'refs/remotes/CosmosOS/master'

This commit is contained in:
MichaelTheShifter 2016-06-14 11:38:01 -04:00
commit 73e324bf2b
4 changed files with 9 additions and 42 deletions

View file

@ -94,9 +94,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="MyEngine.cs" />
<Compile Include="MyEngineAttribute.cs" />
<Compile Include="MySource.cs" />
<Compile Include="MyTest.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
@ -116,11 +114,11 @@
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
<!-- 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.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View file

@ -9,15 +9,15 @@ namespace DebugCompiler
[TestFixture]
public class RunKernels
{
[Test]
public void Test([ValueSource(typeof(MySource), nameof(MySource.ProvideData))] Type kernelToRun)
[TestCaseSource(typeof(MySource), nameof(MySource.ProvideData))]
public void Test(Type kernelToRun)
{
Environment.CurrentDirectory = Path.GetDirectoryName(typeof(RunKernels).Assembly.Location);
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
// 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.
xEngine.RunTargets.Add(RunTargetEnum.Bochs);

View file

@ -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();
}
}
}

View file

@ -1,14 +0,0 @@
using NUnit.Framework;
namespace DebugCompiler
{
[TestFixture]
public class MyTest
{
[Test]
public void Test()
{
Assert.IsTrue(true);
}
}
}