export OMPI_MCA_plm_rsh_agent=/bin/false
export OMPI_MCA_rmaps_base_oversubscribe=1

cp makefile makefile.orig

sed "s|./\${PETSC_ARCH}/lib/slepc/conf/slepcvariables|\${SLEPC_DIR}/lib/slepc/conf/slepcvariables|" -i makefile

make test SLEPC_DIR=/usr/lib/slepc PETSC_DIR=/usr/lib/petsc

cp makefile makefile.tests
cp makefile.orig makefile
