Comparison

tests/test.lua @ 470:2f9d42fdeffa

Also look for binary modules in the parent directory when running tests
author Matthew Wild <mwild1@gmail.com>
date Sat, 29 Nov 2008 03:49:46 +0000
parent 370:9ade55e059ea
child 509:32899c8a6fe5
comparison
equal deleted inserted replaced
469:72683281cbc4 470:2f9d42fdeffa
7 end 7 end
8 8
9 local verbosity = tonumber(arg[1]) or 2; 9 local verbosity = tonumber(arg[1]) or 2;
10 10
11 package.path = package.path..";../?.lua"; 11 package.path = package.path..";../?.lua";
12 package.cpath = package.cpath..";../?.so";
12 13
13 require "util.import" 14 require "util.import"
14 15
15 local env_mt = { __index = function (t,k) return rawget(_G, k) or print("WARNING: Attempt to access nil global '"..tostring(k).."'"); end }; 16 local env_mt = { __index = function (t,k) return rawget(_G, k) or print("WARNING: Attempt to access nil global '"..tostring(k).."'"); end };
16 function testlib_new_env(t) 17 function testlib_new_env(t)