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

RTLIUQE first run on MARTe2

parent 86646305
No related branches found
No related tags found
No related merge requests found
% Sets the code generation configuration settings on all the models
% If called with 0 arguments it copies :
% configurationSettingsCODE -> configurationSettings
% otherwise it takes the first argument as the name of the
% configuration settings to be copied into configurationSettings
function [] = SCDconf_setCODEconf()
disp('Setting configurationSettings = configurationSettingsCODE at tcv level ...');
d=Simulink.data.dictionary.open('tcv.sldd');
function [] = SCDconf_setCODEconf(varargin)
if nargin==0
codeconfname='configurationSettingsCODE';
else
codeconfname=varargin{1};
end
fprintf('Setting configurationSettings = %s at tcv level ...\n', codeconfname);
d=Simulink.data.dictionary.open('configurations.sldd');
dd=getSection(d, 'Configurations');
activeconf=dd.getEntry('configurationSettings');
codeconf=dd.getEntry('configurationSettingsCODE');
codeconf=dd.getEntry(codeconfname);
configurationSettings=codeconf.getValue;
configurationSettings.Name='configurationSettings';
activeconf.deleteEntry;
......
......@@ -29,7 +29,7 @@
%% generate export symbol description files.
%include "export_shrlib_def_scd.tlc"
%%include "export_shrlib.tlc"
%%include "export_shrlib.tlc"export_shrlib_def_scd
%% The contents between 'BEGIN_RTW_OPTIONS' and 'END_RTW_OPTIONS' in this file
%% are used to maintain backward compatibility to R13 and preR13 custom target
......
......@@ -6,7 +6,8 @@ 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
expcode_number = {'1010'}; % list of expcodes to test
end
methods(TestClassSetup)
......@@ -45,12 +46,24 @@ classdef test_expcodes < matlab.unittest.TestCase
end
methods(Test)
function tesdt_expcode(testCase)
function test_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
function test_gencode(testCase)
switch testCase.expcode_obj.maincode
case 1010
SCDconf_setCODEconf('configurationSettingsCODEicc')
rtwbuild('SCD_rtccode_02_02');
rtwbuild('SCD_rtccode_02_03');
otherwise
% do nothing
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