Commit 47544641 authored by Sébastien Villemot's avatar Sébastien Villemot

Testsuite: fix issue with block/bytecode

parent ef1cf5f0
...@@ -98,13 +98,11 @@ for blockFlag = 0:1 ...@@ -98,13 +98,11 @@ for blockFlag = 0:1
old_path = path; old_path = path;
save wsMat save wsMat
run_ls2003(blockFlag, bytecodeFlag, solve_algos(i), default_stack_solve_algo) run_ls2003(blockFlag, bytecodeFlag, solve_algos(i), default_stack_solve_algo)
clear -all
load wsMat load wsMat
path(old_path); path(old_path);
y_ref = oo_.endo_simul; y_ref = oo_.endo_simul;
save('test.mat','y_ref'); save('test.mat','y_ref');
catch exception catch exception
clear -all
load wsMat load wsMat
path(old_path); path(old_path);
failedBlock{size(failedBlock,2)+1} = ['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(solve_algos(i)) ', ' num2str(default_stack_solve_algo) ')']; failedBlock{size(failedBlock,2)+1} = ['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(solve_algos(i)) ', ' num2str(default_stack_solve_algo) ')'];
...@@ -116,7 +114,6 @@ for blockFlag = 0:1 ...@@ -116,7 +114,6 @@ for blockFlag = 0:1
old_path = path; old_path = path;
save wsMat save wsMat
run_ls2003(blockFlag, bytecodeFlag, solve_algos(i), default_stack_solve_algo) run_ls2003(blockFlag, bytecodeFlag, solve_algos(i), default_stack_solve_algo)
clear -all
load wsMat load wsMat
path(old_path); path(old_path);
% Test against the reference simulation path % Test against the reference simulation path
...@@ -129,7 +126,6 @@ for blockFlag = 0:1 ...@@ -129,7 +126,6 @@ for blockFlag = 0:1
clear exception clear exception
end end
catch exception catch exception
clear -all
load wsMat load wsMat
path(old_path); path(old_path);
failedBlock{size(failedBlock,2)+1} = ['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(solve_algos(i)) ', ' num2str(default_stack_solve_algo) ')']; failedBlock{size(failedBlock,2)+1} = ['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(solve_algos(i)) ', ' num2str(default_stack_solve_algo) ')'];
...@@ -144,7 +140,6 @@ for blockFlag = 0:1 ...@@ -144,7 +140,6 @@ for blockFlag = 0:1
old_path = path; old_path = path;
save wsMat save wsMat
run_ls2003(blockFlag, bytecodeFlag, default_solve_algo, stack_solve_algos(i)) run_ls2003(blockFlag, bytecodeFlag, default_solve_algo, stack_solve_algos(i))
clear -all
load wsMat load wsMat
path(old_path); path(old_path);
% Test against the reference simulation path % Test against the reference simulation path
...@@ -157,7 +152,6 @@ for blockFlag = 0:1 ...@@ -157,7 +152,6 @@ for blockFlag = 0:1
clear exception clear exception
end end
catch exception catch exception
clear -all
load wsMat load wsMat
path(old_path); path(old_path);
failedBlock{size(failedBlock,2)+1} = ['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(solve_algos(i)) ', ' num2str(default_stack_solve_algo) ')']; failedBlock{size(failedBlock,2)+1} = ['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(solve_algos(i)) ', ' num2str(default_stack_solve_algo) ')'];
......
...@@ -93,13 +93,11 @@ for blockFlag = 0:1 ...@@ -93,13 +93,11 @@ for blockFlag = 0:1
old_path = path; old_path = path;
save wsOct save wsOct
run_ls2003(blockFlag, bytecodeFlag, solve_algos(i), default_stack_solve_algo) run_ls2003(blockFlag, bytecodeFlag, solve_algos(i), default_stack_solve_algo)
clear -all
load wsOct load wsOct
path(old_path); path(old_path);
y_ref = oo_.endo_simul; y_ref = oo_.endo_simul;
save('test.mat','y_ref'); save('test.mat','y_ref');
catch catch
clear -all
load wsOct load wsOct
path(old_path); path(old_path);
failedBlock{size(failedBlock,2)+1} = ['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(solve_algos(i)) ', ' num2str(default_stack_solve_algo) ')']; failedBlock{size(failedBlock,2)+1} = ['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(solve_algos(i)) ', ' num2str(default_stack_solve_algo) ')'];
...@@ -110,7 +108,6 @@ for blockFlag = 0:1 ...@@ -110,7 +108,6 @@ for blockFlag = 0:1
old_path = path; old_path = path;
save wsOct save wsOct
run_ls2003(blockFlag, bytecodeFlag, solve_algos(i), default_stack_solve_algo) run_ls2003(blockFlag, bytecodeFlag, solve_algos(i), default_stack_solve_algo)
clear -all
load wsOct load wsOct
path(old_path); path(old_path);
## Test against the reference simulation path ## Test against the reference simulation path
...@@ -122,7 +119,6 @@ for blockFlag = 0:1 ...@@ -122,7 +119,6 @@ for blockFlag = 0:1
printMakeCheckOctaveErrMsg(['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(solve_algos(i)) ', ' num2str(default_stack_solve_algo) ')'], differr); printMakeCheckOctaveErrMsg(['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(solve_algos(i)) ', ' num2str(default_stack_solve_algo) ')'], differr);
endif endif
catch catch
clear -all
load wsOct load wsOct
path(old_path); path(old_path);
failedBlock{size(failedBlock,2)+1} = ['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(solve_algos(i)) ', ' num2str(default_stack_solve_algo) ')']; failedBlock{size(failedBlock,2)+1} = ['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(solve_algos(i)) ', ' num2str(default_stack_solve_algo) ')'];
...@@ -136,7 +132,6 @@ for blockFlag = 0:1 ...@@ -136,7 +132,6 @@ for blockFlag = 0:1
old_path = path; old_path = path;
save wsOct save wsOct
run_ls2003(blockFlag, bytecodeFlag, default_solve_algo, stack_solve_algos(i)) run_ls2003(blockFlag, bytecodeFlag, default_solve_algo, stack_solve_algos(i))
clear -all
load wsOct load wsOct
path(old_path); path(old_path);
## Test against the reference simulation path ## Test against the reference simulation path
...@@ -148,7 +143,6 @@ for blockFlag = 0:1 ...@@ -148,7 +143,6 @@ for blockFlag = 0:1
printMakeCheckOctaveErrMsg(['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(default_solve_algo) ', ' num2str(stack_solve_algos(i)) ')'], differr); printMakeCheckOctaveErrMsg(['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(default_solve_algo) ', ' num2str(stack_solve_algos(i)) ')'], differr);
endif endif
catch catch
clear -all
load wsOct load wsOct
path(old_path); path(old_path);
failedBlock{size(failedBlock,2)+1} = ['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(solve_algos(i)) ', ' num2str(default_stack_solve_algo) ')']; failedBlock{size(failedBlock,2)+1} = ['block_bytecode/run_ls2003.m(' num2str(blockFlag) ', ' num2str(bytecodeFlag) ', ' num2str(solve_algos(i)) ', ' num2str(default_stack_solve_algo) ')'];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment