The Git source comes with unit tests (in the MATLAB functions) and integration tests (under the `tests` subfolder). All the tests can be run with:

```

```sh

make check

```

in the `tests` subfolder. If Dynare has been compiled against MATLAB and Octave, the tests will be run with both MATLAB and Octave. Depending on the performance of your machine, this can take several hours. It is possible to run the tests only with MATLAB:

```

```sh

make check-matlab

```

or only with Octave:

```

```sh

make check-octave

```

Note that running the testsuite with Octave requires the additional packages `pstoedit`, `epstool`, `xfig`, and `gnuplot`.

A summary of the results is available in `tests/run_test_matlab_output.txt` or `tests/run_test_octave_output.txt`. Often, it does not make sense to run the complete testsuite. For instance, if you modify codes only related to the perfect foresight model solver, you can decide to run only a subset of the integration tests, with:

```

```sh

make deterministic_simulations

```

This will run all the integration tests in `tests/deterministic_simulations` with MATLAB and Octave. Again, it is possible to do this only with MATLAB:

```

```sh

make m/deterministic_simulations

```

or with Octave:

```

```sh

make o/deterministic_simulations

```

Finally if you want to run a single integration test, e.g. `deterministic_simulations/lbj/rbc.mod` with MATLAB:

```

```sh

make deterministic_simulations/lbj/rbc.m.trs

```

or with Octave:

```

```sh

make deterministic_simulations/lbj/rbc.o.trs

```

The result of the test (`PASSED` or `FAILED`) will be printed in the terminal, the produced log can be displayed with:

```

```sh

make deterministic_simulations/lbj/rbc.m.drs

```

or

```

```sh

make deterministic_simulations/lbj/rbc.o.drs

```

Note that only tests will be executed where the `m.trs/o.trs` does not yet exist. You can run

```

```sh

make clean

```

in the `tests` folder to delete files that were created by the run of the testsuite. You can also manually delete the desired `m.trs/o.trs` file(s).

...

...

@@ -229,7 +229,7 @@ All the prerequisites are packaged:

If you use MATLAB, we strongly advise to also `apt install matlab-support` and confirm to rename the GCC libraries shipped with MATLAB to avoid possible conflicts with GCC libraries shipped by your distribution.

...

...

@@ -347,18 +347,18 @@ Tested on

have a 32-bit Windows, in which case see below)

- Run a MSYS MinGW 64-bit shell

- Update the system:

```

```sh

pacman -Syu

```

You may be asked to close the window at the end of the

first upgrade batch, in which case you should rerun the upgrade in a new

window to complete the upgrade.

- Install all needed dependencies:

```

```sh

pacman -S git autoconf automake-wrapper bison flex make tar texinfo mingw-w64-x86_64-gcc mingw-w64-x86_64-gcc-fortran mingw-w64-x86_64-boost mingw-w64-x86_64-gsl mingw-w64-x86_64-matio mingw-w64-x86_64-openblas

```

- Compile and install SLICOT, needed for the `kalman_steady_state` MEX file

-`./configure --with-matlab=/Applications/MATLAB_R2020b.app CC=gcc-10 CXX=g++-10 CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib`, adjusting the MATLAB path to accord with your local installation. If you don’t have MATLAB, simply replace `--with-matlab=/Applications/MATLAB_R2020b.app` in the above command by `--disable-matlab`.