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
parent
9339869942
commit
ce70e2a9ca
|
@ -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 \
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]);
|
||||
|
|
|
@ -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]);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue