https://github.com/kul-forbes/ForBES
Revision 4b12eb06a82a2c276b4024ebc3b0d5c1b8dfd27e authored by Lorenzo Stella on 05 May 2016, 14:57:20 UTC, committed by Lorenzo Stella on 05 May 2016, 14:57:20 UTC
1 parent 36ed76a
Raw File
Tip revision: 4b12eb06a82a2c276b4024ebc3b0d5c1b8dfd27e authored by Lorenzo Stella on 05 May 2016, 14:57:20 UTC
muted test
Tip revision: 4b12eb0
forbes_test.m
function forbes_test()

% build the paths to add
forbes_path = fileparts(mfilename('fullpath'));
tests_path = fullfile(forbes_path, 'tests');
addpath(tests_path);

fprintf('%40s', 'CheckGamma... ');          test_CheckGamma;            fprintf('OK\n');
fprintf('%40s', 'SolveLasso... ');          test_SolveLasso;            fprintf('OK\n');
fprintf('%40s', 'SolveSparseLogReg... ');   test_SolveSparseLogReg;     fprintf('OK\n');
fprintf('%40s', 'SolveSVM... ');            test_SolveSVM;              fprintf('OK\n');
fprintf('%40s', 'SolveNuclearNormMC... ');	test_SolveNuclearNormMC;    fprintf('OK\n');
fprintf('%40s', 'SolveRankConstrMC... ');	test_SolveRankConstrMC;     fprintf('OK\n');

% rebuild the paths to remove (test scripts may have cleared)
forbes_path = fileparts(mfilename('fullpath'));
tests_path = fullfile(forbes_path, 'tests');
rmpath(tests_path);
back to top