Skip to content

Commit

Permalink
More attempts to fix appveyor build..
Browse files Browse the repository at this point in the history
  • Loading branch information
mterwoord committed Jun 27, 2016
1 parent 9ba48ed commit bb72823
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Tests/Cosmos.TestRunner.Core/DefaultEngineConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ public static void Apply(Engine 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 failure and terminated
engine.AllowedSecondsInKernel = 30;
engine.AllowedSecondsInKernel = 300;

// If you want to test only specific platforms, add them to the list, like next line. By default, all platforms are run.
engine.RunTargets.Add(RunTargetEnum.Bochs);

// If you're working on the compiler (or other lower parts), you can choose to run the compiler in process
// one thing to keep in mind though, is that this only works with 1 kernel at a time!
engine.RunIL2CPUInProcess = true;
//engine.RunIL2CPUInProcess = true;
engine.TraceAssembliesLevel = TraceAssemblies.User;
engine.EnableStackCorruptionChecks = true;
engine.StackCorruptionChecksLevel = StackCorruptionDetectionLevel.AllInstructions;
Expand Down
25 changes: 11 additions & 14 deletions Tests/Cosmos.TestRunner.Core/TestKernelSets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,19 @@ public static class TestKernelSets
{
public static IEnumerable<Type> GetStableKernelTypes()
{
for (int i = 0; i < 5; i++)
{
yield return typeof(VGACompilerCrash.Kernel);
//yield return typeof(VGACompilerCrash.Kernel);

//yield return typeof(Cosmos.Compiler.Tests.Encryption.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);
yield return typeof(Cosmos.Compiler.Tests.LinqTests.Kernel);
yield return typeof(Cosmos.Compiler.Tests.MethodTests.Kernel);
////yield return typeof(Cosmos.Compiler.Tests.Encryption.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);
//yield return typeof(Cosmos.Compiler.Tests.LinqTests.Kernel);
//yield return typeof(Cosmos.Compiler.Tests.MethodTests.Kernel);

//yield return typeof(Cosmos.Kernel.Tests.Fat.Kernel);
//yield return typeof(FrotzKernel.Kernel);
}
//yield return typeof(Cosmos.Kernel.Tests.Fat.Kernel);
////yield return typeof(FrotzKernel.Kernel);
}
}
}
1 change: 1 addition & 0 deletions Users/Matthijs/DebugCompiler/DebugCompiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
<Compile Include="MyEngine.cs" />
<Compile Include="MySource.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TimeoutTest.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
Expand Down
18 changes: 18 additions & 0 deletions Users/Matthijs/DebugCompiler/TimeoutTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System.Threading;
using NUnit.Framework;

namespace DebugCompiler
{
[TestFixture]
public class TimeoutTest
{
[Test]
public void Do()
{
Assert.IsTrue(true);
Thread.Sleep(10 * 60 * 1000);
Assert.IsTrue(true);

}
}
}

0 comments on commit bb72823

Please sign in to comment.