test: fix tests package path
This commit is contained in:
parent
cd2a9d178e
commit
ff4e440f70
@ -18,4 +18,4 @@ install_test ( tests/test_fit.lua )
|
|||||||
install_test ( tests/test.lua )
|
install_test ( tests/test.lua )
|
||||||
install_test ( tests/test_matrix.lua )
|
install_test ( tests/test_matrix.lua )
|
||||||
|
|
||||||
add_lua_test ( test/test.lua ) #FIX
|
add_lua_test ( tests/test.lua )
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
-- test suite (run from parent directory).
|
-- 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(here .. 'test_complex.lua')
|
||||||
dofile 'tests/test_matrix.lua'
|
dofile(here .. 'test_matrix.lua')
|
||||||
dofile 'tests/test_fit.lua'
|
dofile(here .. 'test_fit.lua')
|
||||||
print 'ALL PASSED'
|
print 'ALL PASSED'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user