Fixed bug related to the path to the testes routine.

time-shift
Stéphane Adjemian (Charybdis) 2012-02-28 10:13:34 +01:00
parent 40329e3e29
commit 100ff94644
1 changed files with 4 additions and 2 deletions

View File

@ -52,10 +52,12 @@ function dynTest(fun,dynare_path)
original_directory = pwd();
cd([dynare_path filesep '..' filesep 'tests']);
[pathstr1, name1, ext1] = fileparts(fun);
pathstr1 = [original_directory filesep pathstr1];
cd([dynare_path filesep '..' filesep 'tests']);
mex_flag = 0;
if exist(name1)==3
mex_flag = 1;