test suite: load Octave packages potentially needed when running test suite
parent
28af4678b2
commit
f5f71ca838
|
@ -0,0 +1,21 @@
|
||||||
|
## Copyright (C) 2016 Dynare Team
|
||||||
|
##
|
||||||
|
## This file is part of Dynare.
|
||||||
|
##
|
||||||
|
## Dynare is free software: you can redistribute it and/or modify
|
||||||
|
## it under the terms of the GNU General Public License as published by
|
||||||
|
## the Free Software Foundation, either version 3 of the License, or
|
||||||
|
## (at your option) any later version.
|
||||||
|
##
|
||||||
|
## Dynare is distributed in the hope that it will be useful,
|
||||||
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
## GNU General Public License for more details.
|
||||||
|
##
|
||||||
|
## You should have received a copy of the GNU General Public License
|
||||||
|
## along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
pkg load io
|
||||||
|
pkg load optim
|
||||||
|
pkg load control
|
||||||
|
pkg load statistics
|
|
@ -15,6 +15,10 @@
|
||||||
% You should have received a copy of the GNU General Public License
|
% You should have received a copy of the GNU General Public License
|
||||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
if isoctave
|
||||||
|
load_octave_packages
|
||||||
|
end
|
||||||
|
|
||||||
top_test_dir = getenv('TOP_TEST_DIR');
|
top_test_dir = getenv('TOP_TEST_DIR');
|
||||||
addpath(top_test_dir);
|
addpath(top_test_dir);
|
||||||
addpath([top_test_dir filesep '..' filesep 'matlab']);
|
addpath([top_test_dir filesep '..' filesep 'matlab']);
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
## You should have received a copy of the GNU General Public License
|
## You should have received a copy of the GNU General Public License
|
||||||
## along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
## along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
load_octave_packages
|
||||||
|
|
||||||
top_test_dir = getenv('TOP_TEST_DIR');
|
top_test_dir = getenv('TOP_TEST_DIR');
|
||||||
[mfile, name] = strtok(getenv('FILESTEM'));
|
[mfile, name] = strtok(getenv('FILESTEM'));
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
## Copyright (C) 2013 Dynare Team
|
## Copyright (C) 2013-2016 Dynare Team
|
||||||
##
|
##
|
||||||
## This file is part of Dynare.
|
## This file is part of Dynare.
|
||||||
##
|
##
|
||||||
|
@ -15,6 +15,8 @@
|
||||||
## You should have received a copy of the GNU General Public License
|
## You should have received a copy of the GNU General Public License
|
||||||
## along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
## along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
load_octave_packages
|
||||||
|
|
||||||
top_test_dir = getenv('TOP_TEST_DIR');
|
top_test_dir = getenv('TOP_TEST_DIR');
|
||||||
addpath(top_test_dir);
|
addpath(top_test_dir);
|
||||||
addpath([top_test_dir filesep '..' filesep 'matlab']);
|
addpath([top_test_dir filesep '..' filesep 'matlab']);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
## Copyright (C) 2009-2014 Dynare Team
|
## Copyright (C) 2009-2016 Dynare Team
|
||||||
##
|
##
|
||||||
## This file is part of Dynare.
|
## This file is part of Dynare.
|
||||||
##
|
##
|
||||||
|
@ -21,6 +21,8 @@
|
||||||
## 'wsOct', and reloaded after Dynare has finished (this is necessary since
|
## 'wsOct', and reloaded after Dynare has finished (this is necessary since
|
||||||
## Dynare does a 'clear -all').
|
## Dynare does a 'clear -all').
|
||||||
|
|
||||||
|
load_octave_packages
|
||||||
|
|
||||||
top_test_dir = getenv('TOP_TEST_DIR');
|
top_test_dir = getenv('TOP_TEST_DIR');
|
||||||
addpath(top_test_dir);
|
addpath(top_test_dir);
|
||||||
addpath('.'); % workaround for bug in Octave 4.2.0-rc2: https://savannah.gnu.org/bugs/?49334
|
addpath('.'); % workaround for bug in Octave 4.2.0-rc2: https://savannah.gnu.org/bugs/?49334
|
||||||
|
|
Loading…
Reference in New Issue