Browse Source

Lua : Add initial testing config

This sets Lua up for some unit testing.  We won't have an event loop
based timer, so we'll drop that from Test.hx.
Justin Donaldson 10 years ago
parent
commit
36d3c1f0e9
2 changed files with 4 additions and 1 deletions
  1. 3 0
      tests/unit/compile-lua.hxml
  2. 1 1
      tests/unit/src/unit/Test.hx

+ 3 - 0
tests/unit/compile-lua.hxml

@@ -0,0 +1,3 @@
+compile-each.hxml
+unit.Test
+-lua bin/unit.lua

+ 1 - 1
tests/unit/src/unit/Test.hx

@@ -252,7 +252,7 @@ class Test {
 	}
 	}
 
 
 	static function resetTimer() {
 	static function resetTimer() {
-		#if (neko || php || cpp || java || cs || python || hl)
+		#if (neko || php || cpp || java || cs || python || hl || lua)
 		#else
 		#else
 		if( timer != null ) timer.stop();
 		if( timer != null ) timer.stop();
 		timer = new haxe.Timer(30000);
 		timer = new haxe.Timer(30000);