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
902dba88
Commit
902dba88
authored
4 years ago
by
Cristian Galperti
Browse files
Options
Downloads
Patches
Plain Diff
expcode 1006 and 1007-build excluded from tests
parent
3c5168ef
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
+8
-4
8 additions, 4 deletions
tests/test_expcodes.m
with
8 additions
and
4 deletions
tests/test_expcodes.m
+
8
−
4
View file @
902dba88
...
@@ -7,7 +7,7 @@ classdef test_expcodes < matlab.unittest.TestCase
...
@@ -7,7 +7,7 @@ classdef test_expcodes < matlab.unittest.TestCase
end
end
properties
(
ClassSetupParameter
)
properties
(
ClassSetupParameter
)
expcode
=
{
'1'
,
'1005'
,
'
1006'
,
'
1007'
};
% list of expcodes to test
expcode
=
{
'1'
,
'1005'
,
'1007'
};
% list of expcodes to test
end
end
methods
(
TestClassSetup
)
methods
(
TestClassSetup
)
...
@@ -76,7 +76,9 @@ classdef test_expcodes < matlab.unittest.TestCase
...
@@ -76,7 +76,9 @@ classdef test_expcodes < matlab.unittest.TestCase
function
test_expcode_compile_nodes
(
testCase
)
function
test_expcode_compile_nodes
(
testCase
)
% compile each node separately first
% compile each node separately first
testCase
.
assumeFalse
(
testCase
.
expcode_obj
.
maincode
==
1006
,
'Skipping compile tests for 1006 which requires library'
)
%testCase.assumeFalse(testCase.expcode_obj.maincode==1006,'Skipping compile tests for 1006 which requires library')
%testCase.assumeFalse(testCase.expcode_obj.maincode==1007,'Skipping compile tests for 1007 which requires library')
for
inode
=
1
:
numel
(
testCase
.
expcode_obj
.
nodes
)
for
inode
=
1
:
numel
(
testCase
.
expcode_obj
.
nodes
)
node
=
testCase
.
expcode_obj
.
nodes
(
inode
);
node
=
testCase
.
expcode_obj
.
nodes
(
inode
);
...
@@ -91,7 +93,7 @@ classdef test_expcodes < matlab.unittest.TestCase
...
@@ -91,7 +93,7 @@ classdef test_expcodes < matlab.unittest.TestCase
end
end
function
test_expcode_sim
(
testCase
)
function
test_expcode_sim
(
testCase
)
testCase
.
assumeFalse
(
testCase
.
expcode_obj
.
maincode
==
1006
,
'Skipping compile tests for 1006 which requires library'
)
%
testCase.assumeFalse(testCase.expcode_obj.maincode==1006,'Skipping compile tests for 1006 which requires library')
fprintf
(
'\n === Testing Simulink simulation of tcv.slx for expcode %d: === \n'
,
testCase
.
expcode_obj
.
maincode
)
fprintf
(
'\n === Testing Simulink simulation of tcv.slx for expcode %d: === \n'
,
testCase
.
expcode_obj
.
maincode
)
testCase
.
expcode_obj
.
sim
;
% simulate whole tcv.slx with this expcode
testCase
.
expcode_obj
.
sim
;
% simulate whole tcv.slx with this expcode
...
@@ -99,7 +101,9 @@ classdef test_expcodes < matlab.unittest.TestCase
...
@@ -99,7 +101,9 @@ classdef test_expcodes < matlab.unittest.TestCase
function
test_build
(
testCase
)
function
test_build
(
testCase
)
testCase
.
assumeFalse
(
testCase
.
expcode_obj
.
maincode
==
1006
,
'Skipping build tests for 1006 which requires library'
)
%testCase.assumeFalse(testCase.expcode_obj.maincode==1006,'Skipping build tests for 1006 which requires library')
testCase
.
assumeFalse
(
testCase
.
expcode_obj
.
maincode
==
1007
,
'Skipping build tests for 1007 which requires library'
)
testCase
.
expcode_obj
.
build
;
testCase
.
expcode_obj
.
build
;
end
end
end
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