Added a human readable version of the report (log file).
parent
cafbab4392
commit
6d440fbe56
|
@ -29,10 +29,12 @@ else
|
||||||
mailto = mailreport;
|
mailto = mailreport;
|
||||||
mailreport = 1;
|
mailreport = 1;
|
||||||
fid = fopen('~/.matlab-send-report');
|
fid = fopen('~/.matlab-send-report');
|
||||||
|
server = fgetl(fid);
|
||||||
|
fclose(fid);
|
||||||
fprintf('\n\n');
|
fprintf('\n\n');
|
||||||
disp('Send report...')
|
disp('Send report...')
|
||||||
system(['scp ' reportfile ' ' fgetl(fid)]);
|
system(['scp ' reportfile ' ' server]);
|
||||||
fclose(fid);
|
system(['scp ' reportfile(1:end-3) 'log ' server]);
|
||||||
else
|
else
|
||||||
if ~isequal(mailreport,0)
|
if ~isequal(mailreport,0)
|
||||||
error('build_report_summary:: Third argument must be an adress email!')
|
error('build_report_summary:: Third argument must be an adress email!')
|
||||||
|
@ -50,6 +52,7 @@ str = char(str,'');
|
||||||
str = char(str,'This is a summary report for the unitary tests in Dynare. Full report can be found at');
|
str = char(str,'This is a summary report for the unitary tests in Dynare. Full report can be found at');
|
||||||
str = char(str,'');
|
str = char(str,'');
|
||||||
str = char(str,['http://www.dynare.org/stepan/dynare/tests/' reportfile]);
|
str = char(str,['http://www.dynare.org/stepan/dynare/tests/' reportfile]);
|
||||||
|
str = char(str,['http://www.dynare.org/stepan/dynare/tests/' reportfile(1:end-3) 'log']);
|
||||||
str = char(str,'');
|
str = char(str,'');
|
||||||
str = char(str,gitinfo(1,:));
|
str = char(str,gitinfo(1,:));
|
||||||
str = char(str,gitinfo(2,:));
|
str = char(str,gitinfo(2,:));
|
||||||
|
|
|
@ -33,7 +33,10 @@ matlabverion = version;
|
||||||
platform = computer;
|
platform = computer;
|
||||||
|
|
||||||
listoffiles = get_directory_description(dirname);
|
listoffiles = get_directory_description(dirname);
|
||||||
|
|
||||||
|
diary(['report-' gitlastcommithash '.log'] )
|
||||||
[report, time] = run_unitary_tests(listoffiles);
|
[report, time] = run_unitary_tests(listoffiles);
|
||||||
|
diary off
|
||||||
|
|
||||||
if nargin>1 && savereport>0
|
if nargin>1 && savereport>0
|
||||||
save(['report-' gitlastcommithash '.mat'],'report','time','gitinfo','gitlastcommithash','matlabverion','platform');
|
save(['report-' gitlastcommithash '.mat'],'report','time','gitinfo','gitlastcommithash','matlabverion','platform');
|
||||||
|
|
Loading…
Reference in New Issue