test suite: load Octave packages potentially needed when running test suite

time-shift
Houtan Bastani 2016-10-21 17:14:46 +02:00
parent 28af4678b2
commit f5f71ca838
5 changed files with 33 additions and 2 deletions

View File

@ -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

View File

@ -15,6 +15,10 @@
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if isoctave
load_octave_packages
end
top_test_dir = getenv('TOP_TEST_DIR');
addpath(top_test_dir);
addpath([top_test_dir filesep '..' filesep 'matlab']);

View File

@ -15,6 +15,8 @@
## You should have received a copy of the GNU General Public License
## along with Dynare. If not, see <http://www.gnu.org/licenses/>.
load_octave_packages
top_test_dir = getenv('TOP_TEST_DIR');
[mfile, name] = strtok(getenv('FILESTEM'));

View File

@ -1,4 +1,4 @@
## Copyright (C) 2013 Dynare Team
## Copyright (C) 2013-2016 Dynare Team
##
## This file is part of Dynare.
##
@ -15,6 +15,8 @@
## You should have received a copy of the GNU General Public License
## along with Dynare. If not, see <http://www.gnu.org/licenses/>.
load_octave_packages
top_test_dir = getenv('TOP_TEST_DIR');
addpath(top_test_dir);
addpath([top_test_dir filesep '..' filesep 'matlab']);

View File

@ -1,4 +1,4 @@
## Copyright (C) 2009-2014 Dynare Team
## Copyright (C) 2009-2016 Dynare Team
##
## This file is part of Dynare.
##
@ -21,6 +21,8 @@
## 'wsOct', and reloaded after Dynare has finished (this is necessary since
## Dynare does a 'clear -all').
load_octave_packages
top_test_dir = getenv('TOP_TEST_DIR');
addpath(top_test_dir);
addpath('.'); % workaround for bug in Octave 4.2.0-rc2: https://savannah.gnu.org/bugs/?49334