Browse Source

Default mainfiles to run unit tests.

Daniel Buckmaster 11 years ago
parent
commit
2248c90d52
2 changed files with 26 additions and 0 deletions
  1. 13 0
      Templates/Empty/game/runTests.cs
  2. 13 0
      Templates/Full/game/runTests.cs

+ 13 - 0
Templates/Empty/game/runTests.cs

@@ -0,0 +1,13 @@
+new GuiControlProfile(GuiDefaultProfile);
+new GuiControlProfile(GuiToolTipProfile);
+new GuiCanvas(Canvas);
+function onLightManagerActivate() {}
+function onLightManagerDeactivate() {}
+Canvas.setWindowTitle("Torque 3D Unit Tests");
+new RenderPassManager(DiffuseRenderPassManager);
+setLightManager("Basic Lighting");
+setLogMode(2);
+$Con::LogBufferEnabled = false;
+$Testing::checkMemoryLeaks = false;
+runAllUnitTests();
+quit();

+ 13 - 0
Templates/Full/game/runTests.cs

@@ -0,0 +1,13 @@
+new GuiControlProfile(GuiDefaultProfile);
+new GuiControlProfile(GuiToolTipProfile);
+new GuiCanvas(Canvas);
+function onLightManagerActivate() {}
+function onLightManagerDeactivate() {}
+Canvas.setWindowTitle("Torque 3D Unit Tests");
+new RenderPassManager(DiffuseRenderPassManager);
+setLightManager("Basic Lighting");
+setLogMode(2);
+$Con::LogBufferEnabled = false;
+$Testing::checkMemoryLeaks = false;
+runAllUnitTests();
+quit();