From c8f3b5b96c0452104edc30990bcbcaff295e697a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 13 Feb 2019 16:12:16 +0100
Subject: [PATCH] Various updates to .gitignore files

---
 .gitignore       | 52 ++------------------------
 tests/.gitignore | 97 +++++++++++++++++++++++++++++++++++++++---------
 2 files changed, 83 insertions(+), 66 deletions(-)

diff --git a/.gitignore b/.gitignore
index 91286a26b8..749488200f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -57,47 +57,20 @@ checksum
 *.blg
 *.lof
 /doc/dynare.html
-/doc/dynare.info
-/doc/dynare.info-1
-/doc/dynare.info-2
-/doc/dynare.info-3
-/doc/dynare.cp
-/doc/dynare.fn
-/doc/dynare.fns
-/doc/dynare.vrs
-/doc/dynare.ky
-/doc/dynare.pg
-/doc/dynare.tp
-/doc/dynare.vr
-/doc/dynare.t2p/*
+/doc/dynare.info*
 /doc/texinfo.tex
 /doc/version.texi
 /doc/mdate-sh
 /doc/stamp-vti
 !/doc/guide.bbl
-!/doc/userguide/P_ModStruct3.pdf
-!/doc/userguide/P_MH2.pdf
-!/doc/userguide/P_flowest.pdf
-!/doc/userguide/P_ModStruct4.pdf
-!/doc/userguide/Graphics/DynareFigures.key/droppedImage-2.pdf
-!/doc/userguide/Graphics/DynareFigures.key/droppedImage.pdf
-!/doc/userguide/Graphics/DynareFigures.key/droppedImage-1.pdf
-!/doc/userguide/Graphics/DynareTitle.pdf
-!/doc/userguide/P_ModStruct5.pdf
-!/doc/userguide/P_DynareStruct2.pdf
-!/doc/userguide/P_SchorfMod.pdf
-!/doc/userguide/P_ModStruct2.pdf
-!/doc/userguide/P_ShockModel2.pdf
 !/doc/parallel/AvenueParadigm.pdf
 !/doc/parallel/iVaNo_*.pdf
 !/doc/parallel/netbook_*.pdf
 !/doc/parallel/quest_*.pdf
 !/doc/parallel/RWMH_quest1_*.pdf
 !/doc/parallel/waitbars*.pdf
-doc/m2html
 doc/internals/*.html
 doc/internals/ltxpng
-mex/build/matlab/run_m2html.m
 
 # MATLAB dir
 /matlab/preprocessor*
@@ -108,7 +81,6 @@ mex/build/matlab/run_m2html.m
 
 # DLL rules
 *.mex
-*.dll
 *.oct
 *.mexglx
 *.mexa64
@@ -123,6 +95,7 @@ mex/build/matlab/run_m2html.m
 /dynare++/integ/src/quadrature-points
 /dynare++/integ/src/quadrature-points.exe
 /dynare++/integ/testing/tests
+/dynare++/integ/testing/tests.exe
 /dynare++/kord/tests
 /dynare++/kord/tests.exe
 /dynare++/kord/out.txt
@@ -144,26 +117,6 @@ mex/build/matlab/run_m2html.m
 # Windows
 /windows/dynare-version.nsi
 
-# Estimation DLL tests
-/mex/sources/estimation/tests/test-dr
-/mex/sources/estimation/tests/test-dr.exe
-/mex/sources/estimation/tests/testModelSolution
-/mex/sources/estimation/tests/testModelSolution.exe
-/mex/sources/estimation/tests/testInitKalman
-/mex/sources/estimation/tests/testInitKalman.exe
-/mex/sources/estimation/tests/testKalman
-/mex/sources/estimation/tests/testKalman.exe
-/mex/sources/estimation/tests/testPDF
-/mex/sources/estimation/tests/testPDF.exe
-/mex/sources/estimation/libmat/tests/test-qr
-/mex/sources/estimation/libmat/tests/test-qr.exe
-/mex/sources/estimation/libmat/tests/test-gsd
-/mex/sources/estimation/libmat/tests/test-gsd.exe
-/mex/sources/estimation/libmat/tests/test-lu
-/mex/sources/estimation/libmat/tests/test-lu.exe
-/mex/sources/estimation/libmat/tests/test-repmat
-/mex/sources/estimation/libmat/tests/test-repmat.exe
-
 # MacOS stuff
 .DS_Store
 
@@ -175,6 +128,7 @@ scripts/dynare.elc
 /contrib/ms-sbvar/*.dat
 /contrib/ms-sbvar/sbvar_commandline
 /contrib/ms-sbvar/sbvar_init_file
+!/contrib/ms-sbvar/Makefile
 /tests/ms-sbvar/*.tmp
 
 # Reporting
diff --git a/tests/.gitignore b/tests/.gitignore
index 18d84a788e..f6906a6925 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -1,3 +1,8 @@
+# For checking that no file has been unduly ignored, run:
+# $ git ls-files -i --exclude-per-directory=.gitignore
+# Any file that is displayed should be removed from the ignore list
+# (possibly by an exclusion rule beginning with an exclamation mark)
+
 *.m
 *.mat
 *.eps
@@ -22,32 +27,33 @@ wsOct
 /partial_information/PItest3aHc0PCLsimModPiYrVarobsAll_PCL*
 /partial_information/PItest3aHc0PCLsimModPiYrVarobsCNR_PCL*
 
-!/internals/tests.m
-!/fs2000_ssfile_aux.m
-!/printMakeCheckMatlabErrMsg.m
-!/printMakeCheckOctaveErrMsg.m
-!/ramst_initval_file_data.m
-!/run_test.m
-!/run_test_matlab.m
-!/run_test_octave.m
-!/run_reporting_test_matlab.m
-!/run_reporting_test_octave.m
-!/run_block_byte_tests_matlab.m
-!/run_block_byte_tests_octave.m
-!/run_unitary_tests.m
-!/test.m
 !/AIM/data_ca1.m
 !/AIM/fs2000_b1L1L_AIM_steadystate.m
 !/AIM/fs2000_b1L1L_steadystate.m
 !/AIM/fsdat.m
+!/analytic_derivatives/fsdat_simul.m
 !/block_bytecode/run_ls2003.m
 !/bvar_a_la_sims/bvar_sample.m
+!/conditional_forecasts/2/fsdat_simul.m
+!/data/test.xlsx
+!/dates/fsdat_simul.m
+!/decision_rules/third_order/comparison_policy_functions_dynare_mathematica.m
+!/ep/ar_steadystate.m
+!/ep/exact_solution.m
+!/ep/mean_preserving_spread.m
+!/ep/rbcii_steady_state.m
+!/estimation/fsdat_simul.m
+!/expectations/expectation_ss_old_steadystate.m
 !/external_function/extFunDeriv.m
 !/external_function/extFunNoDerivs.m
 !/external_function/extFunWithFirstAndSecondDerivs.m
+!/fataltest.m
+!/filter_step_ahead/trend_cycle_decomposition_data.m
 !/fs2000/fs2000a_steadystate.m
 !/fs2000/fsdat_simul.m
+!/fs2000/fsdat_simul_dseries.m
 !/fs2000/fsdat_simul_missing_obs.m
+!/fs2000_ssfile_aux.m
 !/gsa/data_ca1.m
 !/gsa/data_ca1.mat
 !/gsa/ls2003_mean.mat
@@ -56,31 +62,88 @@ wsOct
 !/gsa/ls2003scr_mean.mat
 !/gsa/ls2003scr_mode.mat
 !/gsa/ls2003scr_results.mat
-!/identification/kim/kim2_steadystate.m
+!/gsa/morris/nk_est_data.m
 !/identification/as2007/as2007_steadystate.m
+!/identification/kim/kim2_steadystate.m
+!/initval_file/ramst_initval_file_data.m
+!/internals/tests.m
+!/k_order_perturbation/run_fs2000kplusplus.m
 !/kalman/likelihood/compare_kalman_routines.m
 !/kalman/likelihood/simul_state_space_model.m
 !/kalman/likelihood/test1.m
 !/kalman/likelihood/test2.m
 !/kalman/likelihood/test3.m
+!/kalman_filter_smoother/compare_results_simulation/fsdat_simul_logged.m
+!/kalman_filter_smoother/fsdat_simul.m
 !/kalman_filter_smoother/test.mat
 !/kalman_filter_smoother/testsmoother.m
 !/kalman_steady_state/test1.m
-!/k_order_perturbation/run_fs2000kplusplus.m
 !/kronecker/nash_matrices.mat
 !/kronecker/small_matrices.mat
 !/kronecker/test_kron.m
+!/load_octave_packages.m
 !/ls2003/data_ca1.m
 !/measurement_errors/data_ca1.m
+!/measurement_errors/fs2000_corr_me_ml_mcmc/fsdat_simul.m
 !/missing/simulate_data_with_missing_observations.m
+!/ms-sbvar/archive-files/MHM_input.dat
+!/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
 !/ms-sbvar/data.m
 !/objectives/sgu_ex1.mat
+!/observation_trends_and_prefiltering/generate_trend_stationary_AR1.m
+!/optimal_policy/Ramsey/find_c.m
+!/optimal_policy/Ramsey/oo_ramsey_policy_initval.mat
+!/optimizers/optimizer_function_wrapper.m
 !/parallel/data_ca1.m
+!/parallel/init.m
+!/particle/benchmark.m
+!/particle/data_risky_perturb2.m
+!/particle/dsge_base2_steadystate.m
+!/particle/extreme.m
+!/particle/risky.m
 !/pi2004/idata.m
 !/pi2004/ych.dat
 !/practicing/cagan_data.mat
-!/practicing/data_consRicardoypg.mat
 !/practicing/dataHST.mat
+!/practicing/data_consRicardoypg.mat
 !/practicing/datasaver.m
+!/printMakeCheckMatlabErrMsg.m
+!/printMakeCheckOctaveErrMsg.m
+!/prior_posterior_function/posterior_function_demo.m
+!/ramst_initval_file_data.m
 !/recursive/data_ca1.m
+!/reporting/AnnualTable.m
+!/reporting/CommResidTablePage.m
+!/reporting/CountryGraphPage.m
+!/reporting/CountryTablePage.m
+!/reporting/ResidTablePage.m
+!/reporting/runDynareReport.m
+!/run_all_unitary_tests.m
+!/run_block_byte_tests_matlab.m
+!/run_block_byte_tests_octave.m
+!/run_m_script.m
+!/run_o_script.m
+!/run_reporting_test_matlab.m
+!/run_reporting_test_octave.m
+!/run_test.m
+!/run_test_matlab.m
+!/run_test_octave.m
+!/run_unitary_tests.m
+!/shock_decomposition/example1_calib_shock_decomp_data.mat
+!/shock_decomposition/fsdat_simul.m
 !/smoother2histval/fsdat_simul.m
+!/steady_state/walsh1_old_ss_steadystate.m
-- 
GitLab