dynare/tests/Makefile.am

570 lines
22 KiB
Makefile

MODFILES = \
estimation/fs2000_MCMC_jumping_covariance.mod \
estimation/fs2000_initialize_from_calib.mod \
estimation/fs2000_calibrated_covariance.mod \
estimation/MH_recover/fs2000_recover.mod \
estimation/t_proposal/fs2000_student.mod \
gsa/ls2003.mod \
gsa/ls2003a.mod \
gsa/cod_ML_morris/cod_ML_morris.mod \
ramst.mod \
ramst_a.mod \
ramst_static_tag.mod \
example1.mod \
example2.mod \
example1_use_dll.mod \
example1_with_tags.mod \
example1_irf_shocks.mod \
example1_abs_sign.mod \
example1_macroif.mod \
t_sgu_ex1.mod \
optimal_policy/osr_example.mod \
optimal_policy/osr_example_objective_correctness.mod \
optimal_policy/osr_example_obj_corr_non_stat_vars.mod \
optimal_policy/OSR/osr_obj_corr_algo_1.mod \
optimal_policy/OSR/osr_obj_corr_algo_3.mod \
optimal_policy/OSR/osr_obj_corr_algo_4.mod \
optimal_policy/OSR/osr_obj_corr_algo_7.mod \
optimal_policy/OSR/osr_obj_corr_algo_8.mod \
optimal_policy/OSR/osr_obj_corr_algo_9.mod \
optimal_policy/ramsey_.mod \
optimal_policy/nk_ramsey.mod \
optimal_policy/nk_ramsey_model.mod \
optimal_policy/nk_ramsey_det.mod \
optimal_policy/nk_ramsey_expectation.mod \
optimal_policy/nk_ramsey_expectation_a.mod \
optimal_policy/mult_elimination_test.mod \
optimal_policy/Ramsey/ramsey_ex_initval.mod \
optimal_policy/Ramsey/ramsey_ex.mod \
optimal_policy/Ramsey/ramsey_ex_initval_AR2.mod \
optimal_policy/Ramsey/ramsey_ex_aux.mod \
optimal_policy/RamseyConstraints/test1.mod \
discretionary_policy/dennis_1.mod \
initval_file/ramst_initval_file.mod \
ramst_normcdf_and_friends.mod \
ramst_vec.mod \
example1_varexo_det.mod \
predetermined_variables.mod \
fs2000_nonstationary.mod \
fs2000_ssfile.mod \
comments.mod \
histval_sto.mod \
histval_det.mod \
auxiliary_variables/test1.mod \
expectations/expectation.mod \
expectations/expectation_ss.mod \
expectations/expectation_ss_old.mod \
expectations/expectation_nested.mod \
steady_state/walsh1_initval.mod \
steady_state/walsh1_old_ss.mod \
steady_state/walsh1_ssm.mod \
steady_state/walsh1_ssm_block.mod \
steady_state/multi_leads.mod \
steady_state/example1_trust_region.mod \
steady_state_operator/standard.mod \
steady_state_operator/use_dll.mod \
steady_state_operator/block.mod \
steady_state_operator/bytecode_test.mod \
block_bytecode/ireland.mod \
block_bytecode/ramst_normcdf_and_friends.mod \
k_order_perturbation/fs2000k2a.mod \
k_order_perturbation/fs2000k2_use_dll.mod \
k_order_perturbation/fs2000k_1_use_dll.mod \
k_order_perturbation/fs2000k3_use_dll.mod \
k_order_perturbation/fs2000k2_m.mod \
k_order_perturbation/fs2000k_1_m.mod \
k_order_perturbation/fs2000k3_m.mod \
k_order_perturbation/fs2000k3_p.mod \
partial_information/PItest3aHc0PCLsimModPiYrVarobsAll.mod \
partial_information/PItest3aHc0PCLsimModPiYrVarobsCNR.mod \
arima/mod1.mod \
arima/mod1a.mod \
arima/mod1b.mod \
arima/mod1c.mod \
arima/mod2.mod \
arima/mod2a.mod \
arima/mod2b.mod \
arima/mod2c.mod \
data/mod1a.mod \
analytic_derivatives/fs2000_analytic_derivation.mod \
fs2000/fs2000.mod \
fs2000/fs2000a.mod \
fs2000/fs2000c.mod \
fs2000/fs2000_calib.mod \
fs2000/fs2000_calib_dseries.mod \
fs2000/fs2000_analytic_derivation.mod \
fs2000/fs2000_missing_data.mod \
fs2000/fs2000_sd.mod \
fs2000/fs2000_dseries_a.mod \
fs2000/fs2000_dseries_b.mod \
homotopy/homotopy1_test.mod \
homotopy/homotopy2_test.mod \
homotopy/homotopy3_test.mod \
bvar_a_la_sims/bvar_standalone.mod \
bvar_a_la_sims/bvar_and_dsge.mod \
AIM/fs2000x10L9_L.mod \
AIM/fs2000x10L9_L_AIM.mod \
AIM/fs2000x10_L9_L.mod \
AIM/fs2000x10_L9_L_AIM.mod \
AIM/fs2000_b1L1L.mod \
AIM/fs2000_b1L1L_AIM.mod \
AIM/ls2003_2L0L.mod \
AIM/ls2003_2L0L_AIM.mod \
AIM/ls2003_2L2L.mod \
AIM/ls2003_2L2L_AIM.mod \
conditional_variance_decomposition/example1.mod \
dsge-var/simul_hybrid.mod \
dsge-var/dsgevar_forward_calibrated_lambda.mod \
dsge-var/dsgevar_forward_estimated_lambda.mod \
external_function/first_and_2nd_deriv_fcns_provided.mod \
external_function/first_and_2nd_deriv_fcns_provided_dll.mod \
external_function/first_deriv_fcn_provided.mod \
external_function/first_deriv_fcn_provided_dll.mod \
external_function/no_deriv_fcns_provided.mod \
external_function/no_deriv_fcns_provided_dll.mod \
seeds.mod \
identification/kim/kim2.mod \
identification/as2007/as2007.mod \
identification/ident_unit_root/ident_unit_root.mod \
identification/rbc_ident/rbc_ident_std_as_structural_par.mod \
identification/rbc_ident/rbc_ident_varexo_only.mod \
simul/example1.mod \
simul/Solow_no_varexo.mod \
simul/simul_ZLB_purely_forward.mod \
simul/simul_ZLB_purely_forward_no_solution.mod \
conditional_forecasts/fs2000_cal.mod \
conditional_forecasts/fs2000_est.mod \
conditional_forecasts/fs2000_conditional_forecast_initval.mod \
recursive/ls2003.mod \
recursive/ls2003_bayesian.mod \
recursive/ls2003_bayesian_xls.mod \
ms-sbvar/test_exclusions.mod \
ms-sbvar/test_exclusions_nc.mod \
ms-sbvar/test_lower_cholesky.mod \
ms-sbvar/test_lower_cholesky_a.mod \
ms-sbvar/test_lower_cholesky_nc.mod \
ms-sbvar/test_upper_cholesky.mod \
ms-sbvar/test_upper_cholesky_nc.mod \
ms-sbvar/test_ms_variances.mod \
ms-sbvar/test_ms_variances_repeated_runs.mod \
ms-dsge/test_ms_dsge.mod \
kalman/lyapunov/fs2000_lyap.mod \
kalman_filter_smoother/gen_data.mod \
kalman_filter_smoother/algo1.mod \
kalman_filter_smoother/algo2.mod \
kalman_filter_smoother/algo3.mod \
kalman_filter_smoother/algo4.mod \
kalman_filter_smoother/algo4a.mod \
kalman_filter_smoother/algo4b.mod \
kalman_filter_smoother/algoH1.mod \
kalman_filter_smoother/algoH2.mod \
kalman_filter_smoother/algoH3.mod \
kalman_filter_smoother/fs2000.mod \
kalman_filter_smoother/fs2000_1.mod \
kalman_filter_smoother/fs2000_2.mod \
kalman_filter_smoother/fs2000a.mod \
kalman_filter_smoother/fs2000_smoother_only.mod \
kalman_filter_smoother/check_variable_dimensions/fs2000.mod \
kalman_filter_smoother/check_variable_dimensions/fs2000_ML.mod \
second_order/burnside_1.mod \
second_order/ds1.mod \
second_order/ds2.mod \
ep/rbc.mod \
ep/rbc2.mod \
ep/rbcii.mod \
ep/linearmodel.mod \
deterministic_simulations/deterministic_model_purely_forward.mod \
deterministic_simulations/deterministic_model_purely_backward.mod \
deterministic_simulations/rbc_det1.mod \
deterministic_simulations/rbc_det2.mod \
deterministic_simulations/rbc_det3.mod \
deterministic_simulations/rbc_det4.mod \
deterministic_simulations/rbc_det5.mod \
deterministic_simulations/rbc_det6.mod \
deterministic_simulations/homotopy.mod \
deterministic_simulations/rbc_det_exo_lag_2a.mod \
deterministic_simulations/rbc_det_exo_lag_2b.mod \
deterministic_simulations/rbc_det_exo_lag_2c.mod \
deterministic_simulations/sim_several_leads_lags.mod \
walsh.mod \
measurement_errors/fs2000_corr_me_ml_mcmc/fs2000_corr_ME.mod \
trend_var/fs2000_nonstationary.mod \
trend_var/fs2000_log_nonstationary.mod \
third_order/FV2011.mod \
shock_decomposition/example1_calib_shock_decomp.mod \
shock_decomposition/fs2000_est.mod \
shock_decomposition/fs2000_est_varlist.mod \
stochastic_purely_forward/stochastic_purely_forward.mod \
stochastic_purely_forward/stochastic_purely_forward_with_static.mod \
forecast/Hansen_exo_det_forecast.mod \
gradient/fs2000_numgrad_13.mod \
gradient/fs2000_numgrad_15.mod \
gradient/fs2000_numgrad_2.mod \
gradient/fs2000_numgrad_3.mod \
gradient/fs2000_numgrad_5.mod \
filter_step_ahead/fs2000_filter_step_ahead_bayesian.mod \
filter_step_ahead/fs2000_filter_step_ahead_ML.mod \
loglinear/example4_loglinear.mod \
smoother2histval/fs2000_simul.mod \
smoother2histval/fs2000_smooth.mod \
smoother2histval/fs2000_smooth_stoch_simul.mod \
optimizers/fs2000_2.mod \
optimizers/fs2000_3.mod \
optimizers/fs2000_4.mod \
optimizers/fs2000_4_with_optim.mod \
optimizers/fs2000_5.mod \
optimizers/fs2000_6.mod \
optimizers/fs2000_7.mod \
optimizers/fs2000_8.mod \
optimizers/fs2000_8_with_optim.mod \
optimizers/fs2000_9.mod \
optimizers/fs2000_10.mod \
optimizers/fs2000_101.mod \
optimizers/fs2000_102.mod \
optimizers/fs2000_w.mod \
differentiate_forward_vars/RBC_differentiate_forward.mod \
reporting/example1.mod
XFAIL_MODFILES = ramst_xfail.mod \
estim_param_in_shock_value_xfail.mod \
optimal_policy/Ramsey/ramsey_ex_wrong_ss_file_xfail.mod
MFILES = initval_file/ramst_initval_file_data.m
# Dependencies
example1_use_dll.m.trs: example1.m.trs
example1_use_dll.o.trs: example1.o.trs
k_order_perturbation/fs2000k_1_m.m.trs: k_order_perturbation/fs2000k2_m.m.trs
k_order_perturbation/fs2000k2_m.m.trs k_order_perturbation/fs2000k3_m.m.trs k_order_perturbation/fs2000k2_use_dll.m.trs k_order_perturbation/fs2000k3_use_dll.m.trs: k_order_perturbation/fs2000k2a.m.trs
k_order_perturbation/fs2000k_1_use_dll.m.trs: k_order_perturbation/fs2000k2_use_dll.m.trs
k_order_perturbation/fs2000k4.m.trs: k_order_perturbation/fs2000k++.m.trs
k_order_perturbation/fs2000k_1_m.o.trs: k_order_perturbation/fs2000k2_m.o.trs
k_order_perturbation/fs2000k2_m.o.trs k_order_perturbation/fs2000k3_m.o.trs k_order_perturbation/fs2000k2_use_dll.o.trs k_order_perturbation/fs2000k3_use_dll.o.trs: k_order_perturbation/fs2000k2a.o.trs
k_order_perturbation/fs2000k_1_use_dll.o.trs: k_order_perturbation/fs2000k2_use_dll.o.trs
k_order_perturbation/fs2000k4.o.trs: k_order_perturbation/fs2000k++.o.trs
kalman_filter_smoother/algo1.m.trs kalman_filter_smoother/algo3.m.trs kalman_filter_smoother/algo4a.m.trs kalman_filter_smoother/algo4b.m.trs kalman_filter_smoother/algoH1.m.trs kalman_filter_smoother/algoH3.m.trs kalman_filter_smoother/fs2000.m.trs kalman_filter_smoother/fs2000_1.m.trs kalman_filter_smoother/fs2000_2.m.trs kalman_filter_smoother/fs2000a.m.trs: kalman_filter_smoother/gen_data.m.trs
kalman_filter_smoother/algo1.o.trs kalman_filter_smoother/algo3.o.trs kalman_filter_smoother/algo4a.o.trs kalman_filter_smoother/algo4b.o.trs kalman_filter_smoother/algoH1.o.trs kalman_filter_smoother/algoH3.o.trs kalman_filter_smoother/fs2000.o.trs kalman_filter_smoother/fs2000_1.o.trs kalman_filter_smoother/fs2000_2.o.trs kalman_filter_smoother/fs2000a.o.trs: kalman_filter_smoother/gen_data.o.trs
kalman_filter_smoother/algo2.m.trs: kalman_filter_smoother/algo1.m.trs
kalman_filter_smoother/algo2.o.trs: kalman_filter_smoother/algo1.o.trs
kalman_filter_smoother/algoH2.m.trs: kalman_filter_smoother/algoH1.m.trs
kalman_filter_smoother/algoH2.o.trs: kalman_filter_smoother/algoH1.o.trs
kalman_filter_smoother/algo4.m.trs: kalman_filter_smoother/algo3.m.trs
kalman_filter_smoother/algo4.o.trs: kalman_filter_smoother/algo3.o.trs
optimal_policy/nk_ramsey_expectation_a.m.trs: optimal_policy/nk_ramsey_expectation.m.trs
optimal_policy/nk_ramsey_expectation_a.o.trs: optimal_policy/nk_ramsey_expectation.o.trs
second_order/ds2.m.trs: second_order/ds1.m.trs
second_order/ds2.o.trs: second_order/ds1.o.trs
AIM/fs2000_b1L1L_AIM.m.trs: AIM/fs2000_b1L1L.m.trs
AIM/fs2000x10L9_L_AIM.m.trs: AIM/fs2000x10L9_L.m.trs
AIM/fs2000x10_L9_L_AIM.m.trs: AIM/fs2000x10_L9_L.m.trs
AIM/ls2003_2L0L_AIM.m.trs: AIM/ls2003_2L0L.m.trs
AIM/ls2003_2L2L_AIM.m.trs: AIM/ls2003_2L2L.m.trs
AIM/fs2000_b1L1L_AIM.o.trs: AIM/fs2000_b1L1L.o.trs
AIM/fs2000x10L9_L_AIM.o.trs: AIM/fs2000x10L9_L.o.trs
AIM/fs2000x10_L9_L_AIM.o.trs: AIM/fs2000x10_L9_L.o.trs
AIM/ls2003_2L0L_AIM.o.trs: AIM/ls2003_2L0L.o.trs
AIM/ls2003_2L2L_AIM.o.trs: AIM/ls2003_2L2L.o.trs
estimation/fs2000_mf.m.trs: estimation/fs2000.m.trs
estimation/fs2000_mf.o.trs: estimation/fs2000.o.trs
optimizers/fs2000_102.m.trs: estimation/fs2000.m.trs
optimizers/fs2000_102.o.trs: estimation/fs2000.o.trs
arima/mod1a.m.trs: arima/mod1.m.trs
arima/mod1b.m.trs: arima/mod1.m.trs
arima/mod1c.m.trs: arima/mod1.m.trs
arima/mod1a.o.trs: arima/mod1.o.trs
arima/mod1b.o.trs: arima/mod1.o.trs
arima/mod1c.o.trs: arima/mod1.o.trs
arima/mod2a.m.trs: arima/mod2.m.trs
arima/mod2b.m.trs: arima/mod2.m.trs
arima/mod2c.m.trs: arima/mod2.m.trs
arima/mod2a.o.trs: arima/mod2.o.trs
arima/mod2b.o.trs: arima/mod2.o.trs
arima/mod2c.o.trs: arima/mod2.o.trs
dsge-var/dsgevar_forward_calibrated_lambda.m.trs: dsge-var/simul_hybrid.m.trs
dsge-var/dsgevar_forward_estimated_lambda.m.trs: dsge-var/simul_hybrid.m.trs
dsge-var/dsgevar_forward_calibrated_lambda.o.trs: dsge-var/simul_hybrid.o.trs
dsge-var/dsgevar_forward_estimated_lambda.o.trs: dsge-var/simul_hybrid.o.trs
smoother2histval/fs2000_simul.m.trs: smoother2histval/fs2000_smooth.m.trs
smoother2histval/fs2000_simul.o.trs: smoother2histval/fs2000_smooth.o.trs
deterministic_simulations/rbc_det_exo_lag_2b.m.trs: deterministic_simulations/rbc_det_exo_lag_2a.m.trs
deterministic_simulations/rbc_det_exo_lag_2c.m.trs: deterministic_simulations/rbc_det_exo_lag_2a.m.trs
deterministic_simulations/rbc_det_exo_lag_2b.o.trs: deterministic_simulations/rbc_det_exo_lag_2a.o.trs
deterministic_simulations/rbc_det_exo_lag_2c.o.trs: deterministic_simulations/rbc_det_exo_lag_2a.o.trs
initval_file/ramst_initval_file.m.trs: initval_file/ramst_initval_file_data.m.tls
initval_file/ramst_initval_file.o.trs: initval_file/ramst_initval_file_data.o.tls
identification/rbc_ident/rbc_ident_varexo_only.m.trs: identification/rbc_ident/rbc_ident_std_as_structural_par.m.trs
identification/rbc_ident/rbc_ident_varexo_only.o.trs: identification/rbc_ident/rbc_ident_std_as_structural_par.o.trs
# Matlab TRS Files
M_TRS_FILES = $(patsubst %.mod, %.m.trs, $(MODFILES))
M_TRS_FILES += run_block_byte_tests_matlab.m.trs run_reporting_test_matlab.m.trs run_all_unitary_tests.m.trs
M_XFAIL_TRS_FILES = $(patsubst %.mod, %.m.trs, $(XFAIL_MODFILES))
# Octave TRS Files
O_TRS_FILES = $(patsubst %.mod, %.o.trs, $(MODFILES))
O_TRS_FILES += run_block_byte_tests_octave.o.trs run_reporting_test_octave.o.trs run_all_unitary_tests.o.trs
O_XFAIL_TRS_FILES = $(patsubst %.mod, %.o.trs, $(XFAIL_MODFILES))
# Matlab TLS Files
M_TLS_FILES = $(patsubst %.m, %.m.tls, $(MFILES))
# Octave TLS Files
O_TLS_FILES = $(patsubst %.m, %.o.tls, $(MFILES))
EXTRA_DIST = \
read_trs_files.sh \
run_test_matlab.m \
run_test_octave.m \
$(MODFILES) \
$(XFAIL_MODFILES) \
$(MFILES) \
run_block_byte_tests_matlab.m \
run_block_byte_tests_octave.m \
run_reporting_test_matlab.m \
run_reporting_test_octave.m \
run_all_unitary_tests.m \
reporting/AnnualTable.m \
reporting/CommResidTablePage.m \
reporting/CountryGraphPage.m \
reporting/CountryTablePage.m \
reporting/ResidTablePage.m \
reporting/db_a.csv \
reporting/db_q.csv \
reporting/dc_a.csv \
reporting/dc_q.csv \
reporting/runDynareReport.m \
homotopy/common.mod \
block_bytecode/ls2003.mod \
fs2000_ssfile_aux.m \
printMakeCheckMatlabErrMsg.m \
printMakeCheckOctaveErrMsg.m \
fataltest.m \
AIM/data_ca1.m \
AIM/fs2000_b1L1L_AIM_steadystate.m \
AIM/fs2000_b1L1L_steadystate.m \
AIM/fsdat.m \
block_bytecode/run_ls2003.m \
bvar_a_la_sims/bvar_sample.m \
external_function/extFunDeriv.m \
external_function/extFunNoDerivs.m \
external_function/extFunWithFirstAndSecondDerivs.m \
expectations/expectation_ss_old_steadystate.m \
steady_state/walsh1_old_ss_steadystate.m \
data/test.xls \
analytic_derivatives/fsdat_simul.m \
fs2000/fs2000a_steadystate.m \
fs2000/fsdat_simul.m \
k_order_perturbation/run_fs2000kplusplus.m \
ls2003/data_ca1.m \
measurement_errors/data_ca1.m \
measurement_errors/fs2000_corr_me_ml_mcmc/fs2000_corr_ME_steadystate.m \
measurement_errors/fs2000_corr_me_ml_mcmc/fsdat_simul.m \
missing/simulate_data_with_missing_observations.m \
objectives/sgu_ex1.mat \
conditional_forecasts/fsdat_simul.m \
ms-sbvar/data.m \
ms-sbvar/archive-files/ftd_2s_caseall_upperchol3v.m \
ms-sbvar/archive-files/ftd_2s_caseall_upperchol4v.m \
ms-sbvar/archive-files/ftd_2s_caseall_upperchol6v.m \
ms-sbvar/archive-files/ftd_2s_caseall_upperchol7v.m \
ms-sbvar/archive-files/ftd_RSvensson_4v.m \
ms-sbvar/archive-files/ftd_cholesky.m \
ms-sbvar/archive-files/ftd_non_rec_5v.m \
ms-sbvar/archive-files/ftd_simszha5v.m \
ms-sbvar/archive-files/ftd_upperchol3v.m \
ms-sbvar/archive-files/ftd_upperchol4v.m \
ms-sbvar/archive-files/ftd_upperchol5v.m \
ms-sbvar/archive-files/ftd_upperchol6v.m \
ms-sbvar/archive-files/ftd_upperchol7v.m \
ms-sbvar/archive-files/specification_2v.dat \
ms-sbvar/archive-files/specification_2v2c.dat \
recursive/data_ca1.m \
kalman_filter_smoother/fsdat_simul.m \
kalman_filter_smoother/fs2000a_steadystate.m \
identification/kim/kim2_steadystate.m \
estimation/fsdat_simul.m \
ep/mean_preserving_spread.m \
third_order/comparison_policy_functions_dynare_mathematica.m \
third_order/policyfunctions.mat \
shock_decomposition/example1_calib_shock_decomp_data.mat \
shock_decomposition/fsdat_simul.m \
estimation/fs2000_MCMC_jumping_covariance_steadystate.m \
estimation/fs2000_initialize_from_calib_steadystate.m \
filter_step_ahead/fs2000_filter_step_ahead_bayesian_steadystate.m \
filter_step_ahead/fs2000_filter_step_ahead_ML_steadystate.m \
loglinear/results_exp.mat \
smoother2histval/fsdat_simul.m \
optimal_policy/Ramsey/find_c.m \
optimal_policy/Ramsey/oo_ramsey_policy_initval.mat \
optimizers/optimizer_function_wrapper.m \
optimizers/fs2000.common.inc
TARGETS =
if HAVE_CMD_LINE_MATLAB
TARGETS += check-matlab
endif
if HAVE_OCTAVE
TARGETS += check-octave
endif
check-local: $(TARGETS)
@cat run_test_matlab_output.txt
@cat run_test_octave_output.txt
check-matlab: $(M_XFAIL_TRS_FILES) $(M_TRS_FILES)
./read_trs_files.sh "$(M_TRS_FILES)" "$(M_XFAIL_TRS_FILES)"
@echo 'Matlab Tests Done'
check-octave: $(O_XFAIL_TRS_FILES) $(O_TRS_FILES)
./read_trs_files.sh "$(O_TRS_FILES)" "$(O_XFAIL_TRS_FILES)"
@echo 'Octave Tests Done'
%.m.trs %.m.log: %.mod
@echo "`tput bold``tput setaf 8`MATLAB: $(PWD)/$*... `tput sgr0`"
@DYNARE_VERSION="$(PACKAGE_VERSION)" TOP_TEST_DIR="$(PWD)" FILESTEM="$*" \
$(MATLAB)/bin/matlab -nosplash -nodisplay -r run_test_matlab > $*.m.log 2> /dev/null
@if grep -q ":test-result: PASS" $*.m.trs; then \
echo "`tput bold``tput setaf 2`MATLAB: $(PWD)/$* PASSED!`tput sgr0`" ; \
else \
echo "`tput bold``tput setaf 1`MATLAB: $(PWD)/$* FAILED!`tput sgr0`" ; \
fi
%.m.drs %.m.log: %.m.trs
@cat $*.m.log
%.m.trs %.m.log : %.m
@echo "`tput bold``tput setaf 8`MATLAB: $(PWD)/$*... `tput sgr0`"
@DYNARE_VERSION="$(PACKAGE_VERSION)" TOP_TEST_DIR="$(PWD)" \
$(MATLAB)/bin/matlab -nosplash -nodisplay -r $* > $*.m.log 2> /dev/null
@echo "`tput bold``tput setaf 8`MATLAB: $(PWD)/$* Done!`tput sgr0`"
%.o.trs %.o.log: %.mod
@echo "`tput bold``tput setaf 8`OCTAVE: $(PWD)/$*... `tput sgr0`"
@DYNARE_VERSION="$(PACKAGE_VERSION)" TOP_TEST_DIR="$(PWD)" FILESTEM="$*" \
$(OCTAVE) --no-init-file --silent --no-history run_test_octave.m > $*.o.log 2>&1
@if grep -q ":test-result: PASS" $*.o.trs; then \
echo "`tput bold``tput setaf 2`OCTAVE: $(PWD)/$* PASSED!`tput sgr0`" ; \
else \
echo "`tput bold``tput setaf 1`OCTAVE: $(PWD)/$* FAILED!`tput sgr0`" ; \
fi
%.o.drs %.o.log: %.mod %.o.trs
@cat $*.o.log
%.o.trs %.o.log : %.m
@echo "`tput bold``tput setaf 8`OCTAVE: $(PWD)/$*... `tput sgr0`"
@DYNARE_VERSION="$(PACKAGE_VERSION)" TOP_TEST_DIR="$(PWD)" \
$(OCTAVE) --no-init-file --silent --no-history $< > $*.o.log 2>&1
@echo "`tput bold``tput setaf 8`OCTAVE: $(PWD)/$* Done!`tput sgr0`"
%.m.tls : %.m
@echo "`tput bold``tput setaf 8`MATLAB: $(PWD)/$*... `tput sgr0`"
@TOP_TEST_DIR="$(PWD)" FILESTEM="$*" \
$(MATLAB)/bin/matlab -nosplash -nodisplay -r run_m_script 2> /dev/null
@touch $*.m.tls
@echo "`tput bold`MATLAB`tput setaf 8`: $(PWD)/$* Done!`tput sgr0`"
%.o.tls : %.m
@echo "`tput bold``tput setaf 8`OCTAVE: $(PWD)/$*... `tput sgr0`"
@TOP_TEST_DIR="$(PWD)" FILESTEM="$*" \
$(OCTAVE) --no-init-file --silent --no-history run_o_script.m 2>&1
@touch $*.o.tls
@echo "`tput bold``tput setaf 8`OCTAVE: $(PWD)/$* Done!`tput sgr0`"
clean-local:
rm -f $(M_TRS_FILES) \
$(M_TLS_FILES) \
$(M_XFAIL_TRS_FILES) \
$(O_TRS_FILES) \
$(O_TLS_FILES) \
$(O_XFAIL_TRS_FILES) \
$(patsubst %.trs, %.log, $(M_TRS_FILES)) \
$(patsubst %.trs, %.log, $(M_XFAIL_TRS_FILES)) \
$(patsubst %.trs, %.log, $(O_TRS_FILES)) \
$(patsubst %.trs, %.log, $(O_XFAIL_TRS_FILES))
rm -f $(patsubst %.mod, %.m, $(MODFILES)) \
$(patsubst %.mod, %_static.*, $(MODFILES)) \
$(patsubst %.mod, %_objective_static.m, $(MODFILES)) \
$(patsubst %.mod, %_set_auxiliary_variables.m, $(MODFILES)) \
$(patsubst %.mod, %_steadystate2.m, $(MODFILES)) \
$(patsubst %.mod, %_dynamic.*, $(MODFILES))
rm -f $(patsubst %.mod, %_results.mat, $(MODFILES)) \
$(patsubst %.mod, %_mode.mat, $(MODFILES)) \
$(patsubst %.mod, %_mh_mode.mat, $(MODFILES)) \
$(patsubst %.mod, %_mean.mat, $(MODFILES)) \
$(patsubst %.mod, %_pindx.mat, $(MODFILES)) \
$(patsubst %.mod, %_params.mat, $(MODFILES)) \
$(patsubst %.mod, %_simul, $(MODFILES)) \
$(patsubst %.mod, %.log, $(MODFILES))
rm -rf $(patsubst %.mod, %, $(MODFILES))
rm -f $(patsubst %.mod, %*.pdf, $(MODFILES)) \
$(patsubst %.mod, %*.eps, $(MODFILES)) \
$(patsubst %.mod, %*.fig, $(MODFILES))
rm -f $(shell find -name g1.mat) \
$(shell find -name g2.mat) \
$(shell find -name g3.mat) \
$(shell find -name H.dat)
rm -f arima/data1.m arima/data2.m \
k_order_perturbation/*.jnl \
k_order_perturbation/*.mat \
kalman_filter_smoother/data.mat
rm -rf ramsey_objective
rm -f fs2000_ssfile_steadystate.m
rm -f $(shell find -name '*~')
rm -f dsge-var/datarabanal_hybrid.m
rm -rf partial_information/PItest3aHc0PCLsimModPiYrVarobsAll_PCL* partial_information/PItest3aHc0PCLsimModPiYrVarobsCNR_PCL*
rm -rf block_bytecode/ls2003_tmp*
rm -f reporting/report.*
rm -f $(shell find -name wsOct) \
$(shell find -name wsMat.mat)
rm -f run_test_matlab_output.txt run_test_octave_output.txt
rm -rf ms-sbvar/init_* \
ms-sbvar/*.out \
ms-sbvar/*.mat \
ms-sbvar/*.prn \
ms-sbvar/*.dat \
ms-sbvar/tmv_rr_sr \
ms-sbvar/tmv_rr_tr
rm -f estimation/test_matrix.mat
rm -f initval_file/ramst_initval_file_data_col_vec_mat.mat initval_file/ramst_initval_file_data_row_vec_mat.mat initval_file/ramst_initval_file_excel.xls