forked from CovertLab/WholeCell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runSimulationTests.m
29 lines (26 loc) · 937 Bytes
/
runSimulationTests.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% Runs a full length simulation.
%
% Author: Jonathan Karr, [email protected]
% Affilitation: Covert Lab, Department of Bioengineering, Stanford University
% Last updated: 1/12/2011
function runSimulationTests(runProfiler)
%% profile on
if nargin >= 1 && runProfiler
profile('on', '-nohistory');
end
%% initialize
setWarnings();
setPath();
setPreferences();
%% run tests
monitor = edu.stanford.covert.test.XMLTestRunDisplay('Simulation Test','Whole cell full length simulation test', 'output/runSimulationTests/tests.xml');
edu.stanford.covert.test.runtests(monitor, {
'edu.stanford.covert.cell.sim.Simulation_FullLength_Test'
});
%% profile off, save data
if nargin >= 1 && runProfiler
profile('off');
profData = profile('info'); %#ok<NASGU>
save('output/runSimulationTests/profData.mat', 'profData');
edu.stanford.covert.cell.sim.analysis.RunTime.save('output/runSimulationTests/profSummary.html');
end