Added option for saving the produced detailed report about unitary tests.
parent
6bfda327b3
commit
42ed03048b
|
@ -1,4 +1,4 @@
|
|||
function report = run_unitary_tests_in_directory(dirname)
|
||||
function report = run_unitary_tests_in_directory(dirname,savereport)
|
||||
|
||||
% Copyright (C) 2013 Dynare Team
|
||||
%
|
||||
|
@ -18,4 +18,9 @@ function report = run_unitary_tests_in_directory(dirname)
|
|||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
listoffiles = get_directory_description(dirname);
|
||||
report = run_unitary_tests(listoffiles);
|
||||
report = run_unitary_tests(listoffiles);
|
||||
|
||||
if nargin>1 && savereport>0
|
||||
d = clock;
|
||||
save(['report-' num2str(d(1)) '-' num2str(d(2)) '-' num2str(d(3)) '-' num2str(d(4)) '-' num2str(d(5)) '-' num2str(round(d(6))) '.mat' ],'report');
|
||||
end
|
Loading…
Reference in New Issue