Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 28f25110 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

enhanced loss maps for tests

parent a1895ce3
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ namespace TUGraz.VectoCore.ModelbasedTests.DriverStrategy
return slopeStr;
}
[
[Category("LongRunning"),
TestCase(0, 80), TestCase(80, 0), TestCase(80, 80),
TestCase(0, 60), TestCase(60, 0), TestCase(60, 60),
TestCase(0, 40), TestCase(40, 0), TestCase(40, 40),
......@@ -100,7 +100,7 @@ namespace TUGraz.VectoCore.ModelbasedTests.DriverStrategy
}
}
[
[Category("LongRunning"),
TestCase(0, 80), TestCase(80, 0), TestCase(80, 80),
TestCase(0, 60), TestCase(60, 0), TestCase(60, 60),
TestCase(0, 40), TestCase(40, 0), TestCase(40, 40),
......
......@@ -67,6 +67,8 @@ namespace TUGraz.VectoCore.Tests.Models.Simulation
var job = CreateRun(actual);
job.Run();
Assert.IsTrue(job.FinishedWithoutErrors);
ResultFileHelper.TestModFile(expected, actual);
}
......@@ -86,10 +88,14 @@ namespace TUGraz.VectoCore.Tests.Models.Simulation
var run = CreateRun(actual);
var sim = new JobContainer(new MockSumWriter());
sim.AddRun(run);
sim.Execute();
sim.WaitFinished();
var jobContainer = new JobContainer(new MockSumWriter());
jobContainer.AddRun(run);
jobContainer.Execute();
jobContainer.WaitFinished();
foreach (var r in jobContainer.Runs) {
Assert.IsTrue(r.Run.FinishedWithoutErrors, string.Format("{0}", r.ExecException));
}
ResultFileHelper.TestModFile(expected, actual);
}
......@@ -124,6 +130,10 @@ namespace TUGraz.VectoCore.Tests.Models.Simulation
jobContainer.WaitFinished();
foreach (var run in jobContainer.Runs) {
Assert.IsTrue(run.Run.FinishedWithoutErrors, string.Format("{0}", run.ExecException));
}
ResultFileHelper.TestSumFile(@"TestData\Results\EngineOnlyCycles\24t Coach.vsum",
@"TestData\Jobs\24t Coach EngineOnly.vsum");
......
......@@ -111,3 +111,6 @@
2100,800,35717
2100,1000,45643
2100,1100,50653
500,-500,50000
3000,1500,50000
3000,-500,50000
\ No newline at end of file
......@@ -184,3 +184,6 @@ engine speed [1/min],torque [Nm],fuel consumption [g/h]
2600,480,28351
2700,-150,0
2700,0,5900
1200,-400,50000
0,-400,50000
3000,-400,50000
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment