# 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
export OMPI_MCA_btl_base_warn_component_unused=0

export PETSC_DIR=/usr/lib/petsc64
export SLEPC_DIR=/usr/lib/slepc64

echo "=== python 64-bit unit test (serial) ==="
DOLFIN_LIB_NAME_EXT=64 python3 -m pytest python/test/unit/

echo "=== python 64-bit unit test (MPI) ==="
DOLFIN_LIB_NAME_EXT=64 mpirun -n ${N_MPI} python3 -m pytest python/test/unit/ --color=no
