# MPI tests are set up to run on 3 processes.
N_MPI=3
export OMPI_MCA_plm_rsh_agent=/bin/false
export OMPI_MCA_rmaps_base_oversubscribe=1
echo "=== python unit test (serial) ==="
python3 -m pytest python/test/unit/
echo "=== python unit test (MPI) ==="
mpirun -n ${N_MPI} python3 -m pytest python/test/unit/
python3 python/demo/generate-demo-files.py
echo "=== python demo test (serial) ==="
python3 -m pytest -v python/demo/test.py
echo "=== python demo test (MPI) ==="
python3 -m pytest -v python/demo/test.py --mpiexec=mpiexec --num-proc=${N_MPI}
|