annotate runtestsAll.m @ 774:66eb4a2bbb72 feature/grids

Remove default scaling of the system. The scaling doens't seem to help actual solutions. One example that fails in the flexural code. With large timesteps the solutions seems to blow up. One particular example is profilePresentation on the tdb_presentation_figures branch with k = 0.0005
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 18 Jul 2018 15:42:52 -0700
parents cd571e8ec1fd
children 3230e4cbdbb4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
138
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
1 function res = runtestsAll()
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
2 l = dir();
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
3
455
cd571e8ec1fd Add function to run checkcode on all matlab files
Jonatan Werpers <jonatan@werpers.com>
parents: 138
diff changeset
4 warning('Simplify using the ''what'' command')
cd571e8ec1fd Add function to run checkcode on all matlab files
Jonatan Werpers <jonatan@werpers.com>
parents: 138
diff changeset
5
138
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
6 dirNames = {l([l.isdir]).name};
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
7
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
8 packages = {};
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
9 for i = 1:length(dirNames)
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
10 if dirNames{i}(1) == '+'
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
11 packages{end+1} = dirNames{i}(2:end);
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
12 end
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
13 end
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
14
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
15 rootSuite = matlab.unittest.TestSuite.fromFolder(pwd);
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
16 packageSuites = {};
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
17 for i = 1:length(packages)
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
18 packageSuites{i} = matlab.unittest.TestSuite.fromPackage(packages{i});
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
19 end
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
20
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
21 ts = [rootSuite, packageSuites{:}];
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
22
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
23 res = ts.run();
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
24 end