export PRTE_MCA_plm_ssh_agent=/bin/false
export PRTE_MCA_rmaps_default_mapping_policy=:oversubscribe

export OMP_NUM_THREADS=1

cp makefile makefile.orig

sed "s|^\(include \./\${PETSC_ARCH}/lib/slepc/conf/slepcvariables\)|#\1|" -i makefile

make check SLEPC_DIR=/usr/lib/slepcdir/slepc64-complex PETSC_DIR=/usr/lib/petscdir/petsc64-complex V=1

cp makefile makefile.tests
cp makefile.orig makefile
