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

Remove error verbosity & cleanup

parent d21cddad
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ classdef test_expcodes < matlab.unittest.TestCase ...@@ -6,7 +6,7 @@ classdef test_expcodes < matlab.unittest.TestCase
end end
properties(MethodSetupParameter) 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 end
methods(TestClassSetup) methods(TestClassSetup)
...@@ -19,26 +19,35 @@ classdef test_expcodes < matlab.unittest.TestCase ...@@ -19,26 +19,35 @@ classdef test_expcodes < matlab.unittest.TestCase
% get SCD experimental code object container % get SCD experimental code object container
testCase.SCDexps = SCDconf_createexpcodes; testCase.SCDexps = SCDconf_createexpcodes;
SCDconf_setSIMconf; % set ConfigurationSettings for Simulation
end end
end end
methods(TestMethodSetup) methods(TestMethodSetup)
function setup_expcode(testCase,expcode_number) function setup_expcode(testCase,expcode_number)
% get this expcode object from expcode object container % get this expcode object from expcode object container
testCase.expcode_obj = getbymaincode(testCase.SCDexps,expcode_number); fprintf('\n=== Testing expcode %s ===\n',expcode_number);
end testCase.expcode_obj = getbymaincode(testCase.SCDexps,str2double(expcode_number));
end
methods(Test)
function test_callinits(testCase)
testCase.expcode_obj.callinits;
end 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 testCase.expcode_obj.setup; % run setup this exp code
end 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 % attempt compiling tcv.slx for this expcode
testCase.expcode_obj.compile; % compile tcv.slx with this expcode testCase.expcode_obj.compile; % compile tcv.slx with this expcode
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