test: fix tests package path

This commit is contained in:
David Manura 2011-03-25 00:18:33 -04:00
parent cd2a9d178e
commit ff4e440f70
2 changed files with 7 additions and 5 deletions

View File

@ -18,4 +18,4 @@ install_test ( tests/test_fit.lua )
install_test ( tests/test.lua )
install_test ( tests/test_matrix.lua )
add_lua_test ( test/test.lua ) #FIX
add_lua_test ( tests/test.lua )

View File

@ -1,8 +1,10 @@
-- test suite (run from parent directory).
package.path = './lua/?.lua;' .. package.path
local here = arg[0]:gsub('[^/\\]+$', '')
package.path = here .. '../lua/?.lua;' .. package.path
package.path = here .. '../samples/?.lua;' .. package.path
dofile 'tests/test_complex.lua'
dofile 'tests/test_matrix.lua'
dofile 'tests/test_fit.lua'
dofile(here .. 'test_complex.lua')
dofile(here .. 'test_matrix.lua')
dofile(here .. 'test_fit.lua')
print 'ALL PASSED'