Commit 9b3792f2 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Added script to launch all the unit tests.

parent 8ba920e1
opath = path();
% Check that the m-unit-tests module is available.
try
initialize_unit_tests_toolbox;
catch
urlwrite('https://github.com/DynareTeam/m-unit-tests/archive/master.zip','master.zip');
warning('off','MATLAB:MKDIR:DirectoryExists')
mkdir('../externals')
warning('on','MATLAB:MKDIR:DirectoryExists')
unzip('master.zip','../externals')
delete('master.zip')
addpath([pwd() '/../externals/m-unit-tests-master/src'])
initialize_unit_tests_toolbox;
end
% Initialize the dseries module
try
initialize_dseries_toolbox;
catch
unit_tests_root = strrep(which('runalldseriestests'),'runalldseriestests.m','');
addpath([unit_tests_root '/../src']);
initialize_dseries_toolbox;
end
run_unitary_tests_in_directory(dseries_src_root);
delete('*.log');
rmdir('../externals/m-unit-tests-master','s');
path(opath);
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment