Skip to content

Commit

Permalink
(test) runs through examples at once
Browse files Browse the repository at this point in the history
  • Loading branch information
modenaxe committed Jan 8, 2021
1 parent 1c0105d commit ecfd1ed
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/test_run_examples.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
%-------------------------------------------------------------------------%
% Copyright (c) 2021 Modenese L. %
% Author: Luca Modenese %
% email: [email protected] %
% ----------------------------------------------------------------------- %

ex_list = dir('../Example*.m');
run_str = '';
for n_ex = 1:numel(ex_list)
if ~isfolder(ex_list(n_ex).name)
% evalin('caller', ['run(''',fullfile(ex_list(n_ex).folder, ex_list(n_ex).name),''')'])
run_str = [run_str, 'run(''',fullfile(ex_list(n_ex).folder, ex_list(n_ex).name),''');'];

else
continue
end
end

eval(run_str)

0 comments on commit ecfd1ed

Please sign in to comment.