Skip to content
Snippets Groups Projects
Commit 7d4e8e55 authored by Federico Felici's avatar Federico Felici Committed by Olivier Sauter
Browse files

Update and simplify main matlab test runner

parent 58c9c488
No related branches found
No related tags found
1 merge request!110Add test coverage and update test scripts
function tests_matlab(test_case) function tests_matlab(test_case)
%
% function to call tests from test_script.sh
% calls passed = run_gdat_tests(test_case);
% and exits matlab
%
try try
if verLessThan('matlab','8.5.0') fprintf('\n Running test file: %s\n',mfilename('fullpath'));
disp('gdat tests do not work for matlab version <8.5.0, skipping tests'); fprintf(' Time: %s\n',datestr(now));
passed = true;
else passed = run_tbx_tests(test_case); % call to your test script here, with optional test_case input
fprintf('\n Running test file: %s\n',mfilename('fullpath'));
fprintf(' Time: %s\n',datestr(now));
passed = run_gdat_tests(test_case); % add a call to your test script here, with optional test_case input
end
exit_code = int32(~passed); % convert to bash shell convention exit_code = int32(~passed); % convert to bash shell convention
catch ME catch ME
disp(getReport(ME)) disp(getReport(ME))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment