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

Warning off and ignore 1006 for some tests

parent c4c36ef5
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,8 @@ classdef test_expcodes < matlab.unittest.TestCase ...@@ -76,7 +76,8 @@ 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')
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);
if node.active if node.active
...@@ -90,12 +91,15 @@ classdef test_expcodes < matlab.unittest.TestCase ...@@ -90,12 +91,15 @@ 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')
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
end end
function test_build(testCase) function test_build(testCase)
testCase.assumeFalse(testCase.expcode_obj.maincode==1006,'Skipping build tests for 1006 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