Skip to content
Snippets Groups Projects
Commit 2cd55b8d authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed header and changed type of 2nd and 3rd inputs.

parent 1e38f5d0
No related branches found
No related tags found
No related merge requests found
function str = build_report_summary(reportfile, printonscreen, mailreport) function str = build_report_summary(reportfile, printonscreen, mailreport)
% Copyright (C) 2013 Dynare Team % Builds summary report for the unit tests.
% %
% This file is part of Dynare. % INPUTS
% - reportfile [string] Name of the mat files where the unit tests results are stored.
% - printonscreen [logical] Report is displayed in the command window if true.
% - mailreport [string] Email adress where the report summary is to be sent.
%
% OUTPUTS
% - str [string] Report summary.
% Copyright (C) 2013-2014 Dynare Team
%
% This file is part of Dynare (m-unit-tests module).
% %
% Dynare is free software: you can redistribute it and/or modify % Dynare is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% Dynare is distributed in the hope that it will be useful, % Dynare's m-unit-tests module is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
% GNU General Public License for more details. % more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if isequal(nargin,1) if isequal(nargin,1)
printonscreen = 1; printonscreen = true;
mailreport = 0; mailreport = false;
end end
if nargin<3 if nargin<3
mailreport = 0; mailreport = false;
else else
if ischar(mailreport) if ischar(mailreport)
mailto = mailreport; mailto = mailreport;
...@@ -36,7 +46,7 @@ else ...@@ -36,7 +46,7 @@ else
system(['scp ' reportfile ' ' server]); system(['scp ' reportfile ' ' server]);
system(['scp ' reportfile(1:end-3) 'log ' server]); system(['scp ' reportfile(1:end-3) 'log ' server]);
else else
if ~isequal(mailreport,0) if ~isequal(mailreport,false)
error('build_report_summary:: Third argument must be an adress email!') error('build_report_summary:: Third argument must be an adress email!')
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment