test suite: add stats directory for stats tests so that those functions are called instead of the built in octave functions

time-shift
Houtan Bastani 2016-10-25 18:12:58 +02:00
parent 7370d49792
commit 2499a13e5a
1 changed files with 18 additions and 0 deletions

View File

@ -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}