Skip to content
Snippets Groups Projects
Commit 902dba88 authored by Cristian Galperti's avatar Cristian Galperti
Browse files

expcode 1006 and 1007-build excluded from tests

parent 3c5168ef
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
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