From 9a557e62f9ce0ae477723b1571394a8ed3aff282 Mon Sep 17 00:00:00 2001 From: Matthijs ter Woord Date: Tue, 14 Jun 2016 09:25:14 -0400 Subject: [PATCH 1/2] Increase default test runner timeout. --- Users/Matthijs/DebugCompiler/MyEngine.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Users/Matthijs/DebugCompiler/MyEngine.cs b/Users/Matthijs/DebugCompiler/MyEngine.cs index b898c0424..641657fde 100644 --- a/Users/Matthijs/DebugCompiler/MyEngine.cs +++ b/Users/Matthijs/DebugCompiler/MyEngine.cs @@ -17,7 +17,7 @@ namespace DebugCompiler 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); From 1b358a943c367226849ed39cc9e266de5e7ba1dc Mon Sep 17 00:00:00 2001 From: Matthijs ter Woord Date: Tue, 14 Jun 2016 10:26:01 -0400 Subject: [PATCH 2/2] Simplify test runner. --- .../Matthijs/DebugCompiler/DebugCompiler.csproj | 14 ++++++-------- Users/Matthijs/DebugCompiler/MyEngine.cs | 4 ++-- .../Matthijs/DebugCompiler/MyEngineAttribute.cs | 17 ----------------- Users/Matthijs/DebugCompiler/MyTest.cs | 14 -------------- 4 files changed, 8 insertions(+), 41 deletions(-) delete mode 100644 Users/Matthijs/DebugCompiler/MyEngineAttribute.cs delete mode 100644 Users/Matthijs/DebugCompiler/MyTest.cs diff --git a/Users/Matthijs/DebugCompiler/DebugCompiler.csproj b/Users/Matthijs/DebugCompiler/DebugCompiler.csproj index e4151c7e7..544893e9c 100644 --- a/Users/Matthijs/DebugCompiler/DebugCompiler.csproj +++ b/Users/Matthijs/DebugCompiler/DebugCompiler.csproj @@ -94,9 +94,7 @@ - - @@ -116,11 +114,11 @@ - \ No newline at end of file diff --git a/Users/Matthijs/DebugCompiler/MyEngine.cs b/Users/Matthijs/DebugCompiler/MyEngine.cs index 641657fde..c9b535fdb 100644 --- a/Users/Matthijs/DebugCompiler/MyEngine.cs +++ b/Users/Matthijs/DebugCompiler/MyEngine.cs @@ -9,8 +9,8 @@ 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); diff --git a/Users/Matthijs/DebugCompiler/MyEngineAttribute.cs b/Users/Matthijs/DebugCompiler/MyEngineAttribute.cs deleted file mode 100644 index 47aa4df52..000000000 --- a/Users/Matthijs/DebugCompiler/MyEngineAttribute.cs +++ /dev/null @@ -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 BuildFrom(ITypeInfo typeInfo) - { - throw new System.NotImplementedException(); - } - } -} diff --git a/Users/Matthijs/DebugCompiler/MyTest.cs b/Users/Matthijs/DebugCompiler/MyTest.cs deleted file mode 100644 index a478831a5..000000000 --- a/Users/Matthijs/DebugCompiler/MyTest.cs +++ /dev/null @@ -1,14 +0,0 @@ -using NUnit.Framework; - -namespace DebugCompiler -{ - [TestFixture] - public class MyTest - { - [Test] - public void Test() - { - Assert.IsTrue(true); - } - } -}