Skip to content
Snippets Groups Projects
Commit d21cddad authored by Federico Felici's avatar Federico Felici
Browse files

Update CI for multi-stage tests in specific folders

parent 18264994
No related branches found
No related tags found
No related merge requests found
classdef SCDalgo_liuqe_test < matlab.unittest.TestCase classdef SCDalgo_liuqe_test < matlab.unittest.TestCase
properties
algoobj = SCDalgo_liuqe_obj();
end
methods (TestClassSetup)
function setup_conf(testCase)
testCase.assertWarningFree(@() SCDconf_setSIMconf);
end
function setup_algo(testCase)
testCase.assertInstanceOf(testCase.algoobj,'SCDclass_algo');
end
end
methods (Test) methods (Test)
function test_compile(testCase) function test_callinits(testCase)
%% %%
SCDconf_setSIMconf;
algoobj = SCDalgo_liuqe_obj;
algoobj.callinits; % calls inits defining fixed parameters etc
algoobj.setup; % calls possible tunable parameters
algoobj.compile; testCase.algoobj.callinits; % calls inits defining fixed parameters etc
algoobj.sim; end
function test_setup(testCase)
testCase.algoobj.setup; % calls possible tunable parameters
modelname = algoobj.getname;
%%
try
eval(sprintf('%s([],[],[],''compile'')',modelname));
catch
eval(sprintf('%s([],[],[],''term'')',modelname));
end
eval(sprintf('%s([],[],[],''term'')',modelname));
sim(modelname)
%%
end end
function test_compile(testCase)
testCase.algoobj.compile;
end
end end
end end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment