Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
m-unit-tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
m-unit-tests
Commits
2cd55b8d
Commit
2cd55b8d
authored
10 years ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/build_report_summary.m
+20
-10
20 additions, 10 deletions
src/build_report_summary.m
with
20 additions
and
10 deletions
src/build_report_summary.m
+
20
−
10
View file @
2cd55b8d
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment