2 %
function OK = test_all
4 %
function calling all tests and printing diagnostics.
5 % should be called after major changes.
7 % the called tests should output some information, that can be
8 % interpreted. The called tests should not
break with an error, such that
9 %
this routine will consecutively perform all tests, even
if a failed
12 % Bernard Haasdonk 20.8.2007
14 test_names = {
'test_basisgen_init',...
15 'test_cacheable_object', ...
16 'test_matlab_convdiff',...
17 'test_checkpointing',...
19 'test_ei_detailed',...
21 'test_gradient_approx',...
22 'test_gradient_approx_matrix', ...
23 'test_indexed_node',...
25 'test_ldg_derivative',...
26 'test_ldg_orthogonality', ...
28 'test_linear_convection',...
29 'test_matlab_convdiff',...
30 'test_orthonormalize',...
33 'test_power_vector2',...
34 'test_rb_basisgen', ...
35 'test_rb_lin_evol', ...
36 'test_rb_local_ext', ...
37 'test_rb_richards_fv', ...
38 'test_stochastic_assessment',...
39 'test_subgrid_operators',...
40 'test_two_phase_datafunc',...
41 'test_twophase_jacobian',...
43 %
'test_fakeMPI_basisgen',...
45 OKs = zeros(1,length(test_names));
47 for i = 1:length(test_names);
48 disp(
'-----------------------------------------------------------')
49 disp(['testing ', test_names{i}]);
51 OKs(i) = feval(test_names{i});
53 warning([
'test ',test_names{i},
' failed!']);
63 disp('-----------------------------------------------------------')
64 disp('test results:');
65 resstr = {
'failed',
'OK'};
66 for i = 1:length(test_names);
67 disp([test_names{i},
' => ' resstr{OKs(i)+1}]);
69 disp(
'-----------------------------------------------------------')