Debian Codegraph @

tests/run_reporting_tests.m

raw
1 % Copyright © 2013-2023 Dynare Team
2 %
3 % This file is part of Dynare.
4 %
5 % Dynare is free software: you can redistribute it and/or modify
6 % it under the terms of the GNU General Public License as published by
7 % the Free Software Foundation, either version 3 of the License, or
8 % (at your option) any later version.
9 %
10 % Dynare is distributed in the hope that it will be useful,
11 % but WITHOUT ANY WARRANTY; without even the implied warranty of
12 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 % GNU General Public License for more details.
14 %
15 % You should have received a copy of the GNU General Public License
16 % along with Dynare. If not, see <https://www.gnu.org/licenses/>.
17
18 source_dir = getenv('source_root');
19 addpath([source_dir filesep 'matlab']);
20 if isoctave
21 addpath([source_dir filesep 'tests' filesep 'utils']);
22 load_octave_packages
23 end
24
25 % To add default directories, empty dseries objects
26 dynare_config;
27
28 disp('');
29 disp(['*** TESTING: run_reporting_tests.m ***']);
30 try
31 cd reporting
32 db_a = dseries('db_a.csv');
33 db_q = dseries('db_q.csv');
34 dc_a = dseries('dc_a.csv');
35 dc_q = dseries('dc_q.csv');
36 runDynareReport(dc_a, dc_q, db_a, db_q);
37 testFailed = false;
38 catch
39 testFailed = true;
40 end
41
42 quit(testFailed)