Commit bb599ff0 authored by Antonio Ragagnin's avatar Antonio Ragagnin 💬
Browse files

Update install_and_test.md

parent 0740c922
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
@@ -13,15 +13,7 @@ pip install 'hotwheels_PM[tested] @ git+ssh://git@git.ia2.inaf.it/hotwheels/PM.g

This will install also the following hotwheels packages: core, io, timestep. 
The `[tested]` tag will install the versions of the dependencies used to test the release (`v0.0.0alpha` in this case).
You can now test the installed modules running the `hotwheels.checkup` script that will execute all `test_*` C,python and bash files:

```bash
python -m hotwheels.checkup hotwheels
```

The tests will be run using envirnoment varialbe `CC` for the C ompiler (will default to `gcc`), `MPICC` for the MPI compiler (will default to `mpicc`),   `CXX` and `MPICXX` for the c++ version (will default to `g++` and `mpicxx` respectively). 

The PM run needs the `gsl` and `fftw3` to be installed. They should be either in a standard path (`/usr/{lib,include}`) or in your compiler search path (namely, in your `C_INCLUDE_PATH`, `CPLUS_INCLUDE_PATH`, and `LD_LIBRARY_PATH` env variables).

# Install custom release versions

@@ -50,3 +42,16 @@ pip install -e .
cd ..
python -m hotwheels.checkup hotwheels #now the tests are run with the new ./hotwheels/timestep/cosmo.c 
```

# Run tests

To run the C and python tests of the installed `hotwheels` components, run: 

```bash
python -m hotwheels.checkup hotwheels
```

The tests will be run using envirnoment varialbe `CC` for the C ompiler (will default to `gcc`), `MPICC` for the MPI compiler (will default to `mpicc`),   `CXX` and `MPICXX` for the c++ version (will default to `g++` and `mpicxx` respectively). 

The PM run needs the `gsl` and `fftw3` to be installed. They should be either in a standard path (`/usr/{lib,include}`) or in your compiler search path (namely, in your `C_INCLUDE_PATH`, `CPLUS_INCLUDE_PATH`, and `LD_LIBRARY_PATH` env variables).