tests/test.lua

changeset 807
ce39abe0259a
parent 787
c4a4d5604549
child 894
2c0b9e3c11c3
equal deleted inserted replaced
806:3ab6d7aec53f 807:ce39abe0259a
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)

mercurial