Commit b1d87ece authored by Sébastien Villemot's avatar Sébastien Villemot Committed by Stéphane Adjemian
Browse files

Testsuite: do not fail if MATLAB optimization toolbox is not available (closes: #210)

parent aa144224
...@@ -71,15 +71,18 @@ for blockFlag = 0:1 ...@@ -71,15 +71,18 @@ for blockFlag = 0:1
default_solve_algo = 2; default_solve_algo = 2;
default_stack_solve_algo = 0; default_stack_solve_algo = 0;
if ~blockFlag && ~bytecodeFlag if ~blockFlag && ~bytecodeFlag
solve_algos = 0:4; solve_algos = 1:4;
stack_solve_algos = 0; stack_solve_algos = 0;
elseif blockFlag && ~bytecodeFlag elseif blockFlag && ~bytecodeFlag
solve_algos = [0:4 6:8]; solve_algos = [1:4 6:8];
stack_solve_algos = 0:4; stack_solve_algos = 0:4;
else else
solve_algos = 0:8; solve_algos = 1:8;
stack_solve_algos = 0:5; stack_solve_algos = 0:5;
end end
if license('test', 'optimization_toolbox')
solve_algos = [ solve_algos 0 ];
end
for i = 1:length(solve_algos) for i = 1:length(solve_algos)
num_block_tests = num_block_tests + 1; num_block_tests = num_block_tests + 1;
......
Supports Markdown
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