Diff

tests/test.lua @ 808:ce39abe0259a

Fixed tests/test.lua to work on Windows
author Waqas Hussain <waqas20@gmail.com>
date Fri, 13 Feb 2009 22:21:59 +0500
parent 787:c4a4d5604549
child 896:2c0b9e3c11c3
line wrap: on
line diff
--- a/tests/test.lua	Fri Feb 13 22:10:29 2009 +0500
+++ b/tests/test.lua	Fri Feb 13 22:21:59 2009 +0500
@@ -21,8 +21,13 @@
 
 local verbosity = tonumber(arg[1]) or 2;
 
-package.path = package.path..";../?.lua";
-package.cpath = package.cpath..";../?.so";
+if os.getenv("WINDIR") then
+	package.path = package.path..";..\\?.lua";
+	package.cpath = package.cpath..";..\\?.dll";
+else
+	package.path = package.path..";../?.lua";
+	package.cpath = package.cpath..";../?.so";
+end
 
 require "util.import"