Added a human readable version of the report (log file).

time-shift
Stéphane Adjemian (Charybdis) 2013-07-05 18:02:39 +02:00
parent cafbab4392
commit 6d440fbe56
2 changed files with 8 additions and 2 deletions

View File

@ -29,10 +29,12 @@ else
mailto = mailreport;
mailreport = 1;
fid = fopen('~/.matlab-send-report');
server = fgetl(fid);
fclose(fid);
fprintf('\n\n');
disp('Send report...')
system(['scp ' reportfile ' ' fgetl(fid)]);
fclose(fid);
system(['scp ' reportfile ' ' server]);
system(['scp ' reportfile(1:end-3) 'log ' server]);
else
if ~isequal(mailreport,0)
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,'');
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,gitinfo(1,:));
str = char(str,gitinfo(2,:));

View File

@ -33,7 +33,10 @@ matlabverion = version;
platform = computer;
listoffiles = get_directory_description(dirname);
diary(['report-' gitlastcommithash '.log'] )
[report, time] = run_unitary_tests(listoffiles);
diary off
if nargin>1 && savereport>0
save(['report-' gitlastcommithash '.mat'],'report','time','gitinfo','gitlastcommithash','matlabverion','platform');