set -e

for pyver in `py3versions -vs`; do
  echo "Run tests (single processor) with python$pyver"
  python$pyver test/runtests.py --verbose

  # note pytest does not support MPI tests

  # assume standard test covers petsc4py-real, now test complex (non-verbose to simplify output)
  echo "Run tests (single processor) with python$pyver for complex build"
  PETSC_DIR=`pkg-config --variable=prefix PETSc | sed "s/real/complex/"` python$pyver test/runtests.py
done
