Skip to content

Commit ecfd1ed

Browse files
committed
(test) runs through examples at once
1 parent 1c0105d commit ecfd1ed

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/test_run_examples.m

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
%-------------------------------------------------------------------------%
2+
% Copyright (c) 2021 Modenese L. %
3+
% Author: Luca Modenese %
4+
% email: [email protected] %
5+
% ----------------------------------------------------------------------- %
6+
7+
ex_list = dir('../Example*.m');
8+
run_str = '';
9+
for n_ex = 1:numel(ex_list)
10+
if ~isfolder(ex_list(n_ex).name)
11+
% evalin('caller', ['run(''',fullfile(ex_list(n_ex).folder, ex_list(n_ex).name),''')'])
12+
run_str = [run_str, 'run(''',fullfile(ex_list(n_ex).folder, ex_list(n_ex).name),''');'];
13+
14+
else
15+
continue
16+
end
17+
end
18+
19+
eval(run_str)

0 commit comments

Comments
 (0)