Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCDDS-core
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
SCDDS
SCDDS-core
Commits
d21cddad
Commit
d21cddad
authored
5 years ago
by
Federico Felici
Browse files
Options
Downloads
Patches
Plain Diff
Update CI for multi-stage tests in specific folders
parent
18264994
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
algos/SCDliuqe/SCDalgo_liuqe_test.m
+25
-19
25 additions, 19 deletions
algos/SCDliuqe/SCDalgo_liuqe_test.m
with
25 additions
and
19 deletions
algos/SCDliuqe/SCDalgo_liuqe_test.m
+
25
−
19
View file @
d21cddad
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
)
function
test_c
ompile
(
testCase
)
function
test_c
allinits
(
testCase
)
%%
SCDconf_setSIMconf
;
algoobj
=
SCDalgo_liuqe_obj
;
algoobj
.
callinits
;
% calls inits defining fixed parameters etc
algoobj
.
setup
;
% calls possible tunable parameters
algoobj
.
compile
;
algoobj
.
sim
;
testCase
.
algoobj
.
callinits
;
% calls inits defining fixed parameters etc
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
function
test_compile
(
testCase
)
testCase
.
algoobj
.
compile
;
end
end
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment