From 7d4e8e5516454a0318f7983d46728c118789e2de Mon Sep 17 00:00:00 2001 From: Federico Felici <federico.felici@epfl.ch> Date: Thu, 30 Sep 2021 15:29:25 +0200 Subject: [PATCH] Update and simplify main matlab test runner --- matlab/tests_matlab.m | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/matlab/tests_matlab.m b/matlab/tests_matlab.m index 9721f39d..ba460b42 100644 --- a/matlab/tests_matlab.m +++ b/matlab/tests_matlab.m @@ -1,18 +1,9 @@ function tests_matlab(test_case) -% -% function to call tests from test_script.sh -% calls passed = run_gdat_tests(test_case); -% and exits matlab -% try - if verLessThan('matlab','8.5.0') - disp('gdat tests do not work for matlab version <8.5.0, skipping tests'); - passed = true; - else - 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 + fprintf('\n Running test file: %s\n',mfilename('fullpath')); + fprintf(' Time: %s\n',datestr(now)); + + passed = run_tbx_tests(test_case); % call to your test script here, with optional test_case input exit_code = int32(~passed); % convert to bash shell convention catch ME disp(getReport(ME)) -- GitLab