Skip to content

Commit

Permalink
Ongoing work for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mterwoord committed Feb 14, 2016
1 parent d56ad9a commit 58d12e4
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions Tests/Cosmos.TestRunner.Core/Cosmos.TestRunner.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RunConfiguration.cs" />
<Compile Include="TaskFailedException.cs" />
<Compile Include="TestKernelSets.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\source\Cosmos.Assembler\Cosmos.Assembler.csproj">
Expand Down
4 changes: 4 additions & 0 deletions Tests/Cosmos.TestRunner.Core/DefaultEngineConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public static void Apply(Engine engine)
//engine.StartBochsDebugGui = true;

// Select kernels to be tested by adding them to the engine
foreach (var xType in TestKernelSets.GetStableKernelTypes())
{
engine.AddKernel(xType.Assembly.Location);
}
//engine.AddKernel(typeof(VGACompilerCrash.Kernel).Assembly.Location);
//engine.AddKernel(typeof(Cosmos.Compiler.Tests.Bcl.Kernel).Assembly.Location);
//engine.AddKernel(typeof(Cosmos.Compiler.Tests.SingleEchoTest.Kernel).Assembly.Location);
Expand Down
18 changes: 18 additions & 0 deletions Tests/Cosmos.TestRunner.Core/TestKernelSets.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;

namespace Cosmos.TestRunner.Core
{
public static class TestKernelSets
{
public static IEnumerable<Type> GetStableKernelTypes()
{
yield return typeof(VGACompilerCrash.Kernel);
yield return typeof(Cosmos.Compiler.Tests.Bcl.Kernel);
yield return typeof(Cosmos.Compiler.Tests.SingleEchoTest.Kernel);
yield return typeof(Cosmos.Compiler.Tests.SimpleWriteLine.Kernel.Kernel);
yield return typeof(SimpleStructsAndArraysTest.Kernel);
yield return typeof(Cosmos.Compiler.Tests.Exceptions.Kernel);
}
}
}
6 changes: 6 additions & 0 deletions Users/Matthijs/DebugCompiler/DebugCompiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Tests\Cosmos.TestRunner.Core\Cosmos.TestRunner.Core.csproj">
<Project>{758FAF24-9974-4DB8-82EF-1B64DAF2F0BC}</Project>
<Name>Cosmos.TestRunner.Core</Name>
</ProjectReference>
</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.
Expand Down

0 comments on commit 58d12e4

Please sign in to comment.