Comparison

tests/test.lua @ 814:f12b1ddd458d

Merge from waqas
author Matthew Wild <mwild1@gmail.com>
date Mon, 16 Feb 2009 15:44:54 +0000
parent 808:ce39abe0259a
child 896:2c0b9e3c11c3
comparison
equal deleted inserted replaced
806:655293df3d7e 814:f12b1ddd458d
19 dosingletest("test_sasl.lua", "latin1toutf8"); 19 dosingletest("test_sasl.lua", "latin1toutf8");
20 end 20 end
21 21
22 local verbosity = tonumber(arg[1]) or 2; 22 local verbosity = tonumber(arg[1]) or 2;
23 23
24 package.path = package.path..";../?.lua"; 24 if os.getenv("WINDIR") then
25 package.cpath = package.cpath..";../?.so"; 25 package.path = package.path..";..\\?.lua";
26 package.cpath = package.cpath..";..\\?.dll";
27 else
28 package.path = package.path..";../?.lua";
29 package.cpath = package.cpath..";../?.so";
30 end
26 31
27 require "util.import" 32 require "util.import"
28 33
29 local env_mt = { __index = function (t,k) return rawget(_G, k) or print("WARNING: Attempt to access nil global '"..tostring(k).."'"); end }; 34 local env_mt = { __index = function (t,k) return rawget(_G, k) or print("WARNING: Attempt to access nil global '"..tostring(k).."'"); end };
30 function testlib_new_env(t) 35 function testlib_new_env(t)