0001 function success = test_most(verbose, exit_on_fail)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 if nargin < 2
0024 exit_on_fail = 0;
0025 if nargin < 1
0026 verbose = 0;
0027 end
0028 end
0029
0030 tests = {};
0031
0032
0033 have_c3sopf = exist('c3sopf', 'file') == 2;
0034 tests{end+1} = 't_most_3b_1_1_0';
0035 tests{end+1} = 't_most_3b_3_1_0';
0036 if have_c3sopf
0037 tests{end+1} = 't_most_3b_1_1_2';
0038 tests{end+1} = 't_most_3b_3_1_2';
0039 end
0040 tests{end+1} = 't_most_30b_1_1_0';
0041 tests{end+1} = 't_most_30b_3_1_0';
0042 if have_c3sopf
0043 tests{end+1} = 't_most_30b_1_1_17';
0044 tests{end+1} = 't_most_30b_3_1_17';
0045 end
0046 tests{end+1} = 't_most_fixed_res';
0047 tests{end+1} = 't_most_30b_1_1_0_uc';
0048 if have_c3sopf
0049 tests{end+1} = 't_most_sp';
0050 tests{end+1} = 't_most_spuc';
0051 end
0052 tests{end+1} = 't_most_uc';
0053 tests{end+1} = 't_most_suc';
0054 tests{end+1} = 't_most_w_ds';
0055
0056
0057 all_ok = t_run_tests( tests, verbose );
0058
0059
0060 if exit_on_fail && ~all_ok
0061 exit(1);
0062 end
0063 if nargout
0064 success = all_ok;
0065 end