From b997febc9256c74c41288fdbbb4d3efcef1cddb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Fri, 5 Jul 2013 16:11:46 +0200 Subject: [PATCH] Added matlab version and system name in the generated report. --- matlab/utilities/tests/run_unitary_tests_in_directory.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/matlab/utilities/tests/run_unitary_tests_in_directory.m b/matlab/utilities/tests/run_unitary_tests_in_directory.m index bdd32569b..300d599f8 100644 --- a/matlab/utilities/tests/run_unitary_tests_in_directory.m +++ b/matlab/utilities/tests/run_unitary_tests_in_directory.m @@ -29,11 +29,14 @@ fid = fopen('git.last-commit-hash'); gitlastcommithash = fgetl(fid); fclose(fid); +matlabverion = version; +platform = computer; + listoffiles = get_directory_description(dirname); [report, time] = run_unitary_tests(listoffiles); if nargin>1 && savereport>0 - save(['report-' gitlastcommithash '.mat'],'report','time','gitinfo','gitlastcommithash'); + save(['report-' gitlastcommithash '.mat'],'report','time','gitinfo','gitlastcommithash','matlabverion','platform'); end if nargin>2