Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
807:3ab6d7aec53f | 808: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) |