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
a76428e8
Commit
a76428e8
authored
5 years ago
by
Federico Felici
Browse files
Options
Downloads
Patches
Plain Diff
Remove error verbosity & cleanup
parent
d21cddad
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
tests/test_expcodes.m
+20
-11
20 additions, 11 deletions
tests/test_expcodes.m
with
20 additions
and
11 deletions
tests/test_expcodes.m
+
20
−
11
View file @
a76428e8
...
...
@@ -6,7 +6,7 @@ classdef test_expcodes < matlab.unittest.TestCase
end
properties
(
MethodSetupParameter
)
expcode_number
=
{
1
,
1005
,
1006
,
1010
};
% list of expcodes to test
expcode_number
=
{
'1'
,
'
1005
'
,
'
1006
'
,
'
1010
'
};
% list of expcodes to test
end
methods
(
TestClassSetup
)
...
...
@@ -19,26 +19,35 @@ classdef test_expcodes < matlab.unittest.TestCase
% get SCD experimental code object container
testCase
.
SCDexps
=
SCDconf_createexpcodes
;
SCDconf_setSIMconf
;
% set ConfigurationSettings for Simulation
end
end
methods
(
TestMethodSetup
)
function
setup_expcode
(
testCase
,
expcode_number
)
% get this expcode object from expcode object container
testCase
.
expcode_obj
=
getbymaincode
(
testCase
.
SCDexps
,
expcode_number
);
end
end
methods
(
Test
)
function
test_callinits
(
testCase
)
testCase
.
expcode_obj
.
callinits
;
fprintf
(
'\n=== Testing expcode %s ===\n'
,
expcode_number
);
testCase
.
expcode_obj
=
getbymaincode
(
testCase
.
SCDexps
,
str2double
(
expcode_number
));
end
function
test_setup
(
testCase
)
function
test_expcode_setup
(
testCase
)
fprintf
(
'\n=== Testing callinits for expcode %d: %s === \n'
,
...
testCase
.
expcode_obj
.
maincode
,
testCase
.
expcode_obj
.
name
);
testCase
.
expcode_obj
.
callinits
;
fprintf
(
'\n=== Testing setup for expcode %d: %s === \n'
,
...
testCase
.
expcode_obj
.
maincode
,
testCase
.
expcode_obj
.
name
);
testCase
.
expcode_obj
.
setup
;
% run setup this exp code
end
function
test_expcode
(
testCase
)
end
methods
(
Test
)
function
tesdt_expcode
(
testCase
)
fprintf
(
'\n === Testing Simulink compilation for expcode %d: %s === \n'
,
...
testCase
.
expcode_obj
.
maincode
,
testCase
.
expcode_obj
.
name
);
% attempt compiling tcv.slx for this expcode
testCase
.
expcode_obj
.
compile
;
% compile tcv.slx with this expcode
end
...
...
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