test suite: add stats directory for stats tests so that those functions are called instead of the built in octave functions
parent
7370d49792
commit
2499a13e5a
|
@ -34,11 +34,29 @@ mlist = get_directory_description('../matlab');
|
|||
failedtests = {};
|
||||
|
||||
counter = 0;
|
||||
added_path = false;
|
||||
dir = '';
|
||||
|
||||
for i = 1:length(mlist)
|
||||
f = [top_test_dir filesep mlist{i} ];
|
||||
if is_unitary_test_available(f)
|
||||
if isoctave
|
||||
% So that `missing` functions that are in the Octave statistics
|
||||
% package can be tested
|
||||
[dir name ext] = fileparts(f);
|
||||
[dir1 name1 ext1] = fileparts(dir);
|
||||
if strcmp(name1, 'stats')
|
||||
addpath(dir);
|
||||
added_path = true;
|
||||
end
|
||||
end
|
||||
[check, info] = mtest(f);
|
||||
if isoctave
|
||||
if added_path
|
||||
rmpath(dir);
|
||||
added_path = false;
|
||||
end
|
||||
end
|
||||
for j = 1:size(info, 1)
|
||||
counter = counter + 1;
|
||||
if ~info{j,3}
|
||||
|
|
Loading…
Reference in New Issue