Testsuite: do not add top-level tests/ directory to the MATLAB/Octave path

This directory is cluttered with so many files that it creates problem (e.g.
dynare-command-options/ramst.mod was broken under Octave because of this).

Move files that have to be found through the path in a utils/ subdirectory.
time-shift
Sébastien Villemot 2019-02-15 18:25:41 +01:00
parent 9339869942
commit ce70e2a9ca
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
12 changed files with 10 additions and 9 deletions

View File

@ -777,8 +777,8 @@ EXTRA_DIST = \
homotopy/common.mod \
block_bytecode/ls2003.mod \
fs2000_ssfile_aux.m \
printMakeCheckMatlabErrMsg.m \
printMakeCheckOctaveErrMsg.m \
utils/printMakeCheckMatlabErrMsg.m \
utils/printMakeCheckOctaveErrMsg.m \
fataltest.m \
AIM/data_ca1.m \
AIM/fsdat.m \

View File

@ -16,7 +16,6 @@
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
top_test_dir = getenv('TOP_TEST_DIR');
addpath(top_test_dir);
addpath([top_test_dir filesep '..' filesep 'matlab']);
dynare_config([], 0);

View File

@ -24,7 +24,7 @@
% wsMat' within a 'catch' block will overwrite the last exception.
top_test_dir = getenv('TOP_TEST_DIR');
addpath(top_test_dir);
addpath([top_test_dir filesep 'utils']);
addpath([top_test_dir filesep '..' filesep 'matlab']);
% Test Dynare Version

View File

@ -22,7 +22,7 @@
## Dynare does a 'clear -all').
top_test_dir = getenv('TOP_TEST_DIR');
addpath(top_test_dir);
addpath([top_test_dir filesep 'utils']);
addpath([top_test_dir filesep '..' filesep 'matlab']);
## Test Dynare Version

View File

@ -16,6 +16,8 @@
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
top_test_dir = getenv('TOP_TEST_DIR');
addpath([top_test_dir filesep 'utils']);
[mfile, name] = strtok(getenv('FILESTEM'));
[directory, mscript, ext] = fileparts([top_test_dir '/' mfile]);

View File

@ -18,6 +18,8 @@
load_octave_packages
top_test_dir = getenv('TOP_TEST_DIR');
addpath([top_test_dir filesep 'utils']);
[mfile, name] = strtok(getenv('FILESTEM'));
[directory, mscript, ext] = fileparts([top_test_dir '/' mfile]);

View File

@ -16,7 +16,6 @@
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
top_test_dir = getenv('TOP_TEST_DIR');
addpath(top_test_dir);
addpath([top_test_dir filesep '..' filesep 'matlab']);
% Test Dynare Version

View File

@ -18,7 +18,6 @@
load_octave_packages
top_test_dir = getenv('TOP_TEST_DIR');
addpath(top_test_dir);
addpath([top_test_dir filesep '..' filesep 'matlab']);
## Test Dynare Version

View File

@ -16,7 +16,7 @@
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
top_test_dir = getenv('TOP_TEST_DIR');
addpath(top_test_dir);
addpath([top_test_dir filesep 'utils']);
addpath([top_test_dir filesep '..' filesep 'matlab']);
% Test Dynare Version

View File

@ -24,7 +24,7 @@
load_octave_packages
top_test_dir = getenv('TOP_TEST_DIR');
addpath(top_test_dir);
addpath([top_test_dir filesep 'utils']);
addpath([top_test_dir filesep '..' filesep 'matlab']);
## Test Dynare Version