Переглянути джерело

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 роки тому
батько
коміт
36d3c1f0e9
2 змінених файлів з 4 додано та 1 видалено
  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() {
-		#if (neko || php || cpp || java || cs || python || hl)
+		#if (neko || php || cpp || java || cs || python || hl || lua)
 		#else
 		if( timer != null ) timer.stop();
 		timer = new haxe.Timer(30000);