Testsuite: fix engine for testing M scripts

I’m not sure it has ever worked.

As a consequence, remove the workaround that had apparently been implemented in
tests/initval_file/ramst_initval_file.mod.
time-shift
Sébastien Villemot 2019-12-19 14:34:03 +01:00
parent b8a920463f
commit e81c837c51
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
4 changed files with 6 additions and 11 deletions

1
.gitignore vendored
View File

@ -40,6 +40,7 @@ checksum
# Make Check Rules
*.trs
*.tls
# Doc rules
*.pdf

View File

@ -22,12 +22,6 @@ k = ((delt+bet)/(1.0*aa*alph))^(1/(alph-1));
c = aa*k^alph-delt*k;
end;
initval_file(filename = ramst_initval_file_data);
steady;
perfect_foresight_setup(periods=200);
perfect_foresight_solver;
initval_file(filename = ramst_initval_file_data_row_vec_mat);
steady;
perfect_foresight_setup(periods=200);

View File

@ -1,4 +1,4 @@
% Copyright (C) 2015 Dynare Team
% Copyright (C) 2015-2019 Dynare Team
%
% This file is part of Dynare.
%
@ -24,7 +24,7 @@ addpath([top_test_dir filesep 'utils']);
cd(directory);
try
mscript;
eval(mscript);
testFailed = false;
catch exception
printMakeCheckMatlabErrMsg(strtok(getenv('FILESTEM')), exception);
@ -51,4 +51,4 @@ else
fprintf(fid,':list-of-passed-tests: %s\n', [name '.m']);
end
fclose(fid);
exit;
exit;

View File

@ -1,4 +1,4 @@
## Copyright (C) 2015-2016 Dynare Team
## Copyright (C) 2015-2019 Dynare Team
##
## This file is part of Dynare.
##
@ -26,7 +26,7 @@ addpath([top_test_dir filesep 'utils']);
cd(directory);
try
mscript;
eval(mscript);
testFailed = false;
catch
printMakeCheckOctaveErrMsg(getenv('FILESTEM'), lasterror);