Commit 6bf6f29f authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

new test suite

parent 6ced83cc
% include the root folder and all subfolders.
addpath(genpath([pwd filesep 'test']));
try
% save the userpath
originalUserPath = path;
result = runtests('./test/', 'Recursively', true, 'BaseFolder', '*verified*');
sumFailed = 0;
sumIncomplete = 0;
% print out a summary table
table(result)
% restore the original path
restoredefaultpath;
addpath(originalUserPath);
if sumFailed > 0 || sumIncomplete > 0
exit_code = 1;
end
% ensure that we ALWAYS call exit
if ~isempty(strfind(getenv('HOME'), 'jenkins'))
exit(exit_code);
end
catch
exit(1);
end
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment