Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sébastien Villemot
dseries
Commits
9b3792f2
Commit
9b3792f2
authored
Jun 24, 2015
by
Stéphane Adjemian
Browse files
Added script to launch all the unit tests.
parent
8ba920e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/runalldseriestests.m
0 → 100644
View file @
9b3792f2
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment