Skip to content
Snippets Groups Projects
Verified Commit 37ab539a authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

testsuite: provide meaningful output in case of LaTeX errors

parent 6adf1c26
No related branches found
No related tags found
No related merge requests found
......@@ -185,6 +185,8 @@ stoch_simul(order=1,irf=20,graph_format=eps,periods=0,contemporaneous_correlatio
collect_latex_files;
//identification(advanced=1,max_dim_cova_group=3,prior_mc=250);
if system(['pdflatex -halt-on-error -interaction=batchmode ' M_.fname '_TeX_binder.tex'])
[status, cmdout]=system(['pdflatex -halt-on-error -interaction=nonstopmode ' M_.fname '_TeX_binder.tex']);
if status
cmdout
error('TeX-File did not compile.')
end
......@@ -179,6 +179,8 @@ alpha2_rmse=0, // no correlation analysis
rmse=1,ppost=1,Nsam=512);
collect_latex_files;
if system(['pdflatex -halt-on-error -interaction=batchmode ' M_.fname '_TeX_binder.tex'])
[status, cmdout]=system(['pdflatex -halt-on-error -interaction=nonstopmode ' M_.fname '_TeX_binder.tex']);
if status
cmdout
error('TeX-File did not compile.')
end
......@@ -96,7 +96,9 @@ identification(tex);
identification(tex,advanced=1,max_dim_cova_group=3,prior_mc=250,no_identification_spectrum, no_identification_minimal);
collect_latex_files;
if system(['pdflatex -halt-on-error -interaction=batchmode ' M_.fname '_TeX_binder.tex'])
[status, cmdout]=system(['pdflatex -halt-on-error -interaction=nonstopmode ' M_.fname '_TeX_binder.tex']);
if status
cmdout
error('TeX-File did not compile.')
end
close all;
......
......@@ -134,6 +134,8 @@ identification(advanced=1,max_dim_cova_group=3,prior_mc=250,tex);
collect_latex_files;
if system(['pdflatex -halt-on-error -interaction=batchmode ' M_.fname '_TeX_binder.tex'])
[status, cmdout]=system(['pdflatex -halt-on-error -interaction=nonstopmode ' M_.fname '_TeX_binder.tex']);
if status
cmdout
error('TeX-File did not compile.')
end
......@@ -245,6 +245,8 @@ write_latex_original_model(write_equation_tags);
write_latex_steady_state_model;
collect_latex_files;
if system(['pdflatex -halt-on-error -interaction=batchmode ' M_.fname '_TeX_binder.tex'])
[status, cmdout]=system(['pdflatex -halt-on-error -interaction=nonstopmode ' M_.fname '_TeX_binder.tex']);
if status
cmdout
error('TeX-File did not compile.')
end
\ No newline at end of file
end
......@@ -165,6 +165,8 @@ realtime_shock_decomposition(fast_realtime=75) y_obs R_obs pie_obs dq de;
squeeze_shock_decomposition;
collect_latex_files;
if system(['pdflatex -halt-on-error -interaction=batchmode ' M_.fname '_TeX_binder.tex'])
[status, cmdout]=system(['pdflatex -halt-on-error -interaction=nonstopmode ' M_.fname '_TeX_binder.tex']);
if status
cmdout
error('TeX-File did not compile.')
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment