function make_simulink_unit_test_file(...
test_file_name,...
component,...
function_created_sub_system,...
parameters,...
test_cases)
% make_simulink_unit_test_file - save a unit test in a .mat file
%
% Inputs:
%
% test_file_name - name of the file to save the test to
% component - name of the component to test
% function_created_sub_system - flag that the component is instantiated by a script
% parameters - instantiation parameters for the component
% test_cases - structure containing details of the test cases
%
% Example:
% make_simulink_unit_test_file('my_first_little_unit_test.mat',component,function_created_sub_system,parameters,test_cases)
%
% Other m-files required: none
%
% See also: unit_test, run_unit_test_batch, make_simulink_unit_test
% Author: Carl Kritzinger
% KAT DSP Team
% email address: carl@ska.ac.za
% November 2005
%------------- MAIN --------------
is_simulink = 1;
save(...
test_file_name,...
'test_cases',...
'is_simulink',...
'component',...
'function_created_sub_system',...
'parameters',...
'test_file_name');