PETSC_DIR=/usr/lib/petsc
echo "Running petsc4py demos using PETSC_DIR=${PETSC_DIR}"

# test demos as installed
cp -r /usr/share/doc/python-slepc4py-docs/examples/demo test-demos
gunzip -r test-demos

echo "Run demos (single processor) with python2"
make PETSC_DIR=${PETSC_DIR} -C test-demos

echo "Run demos (single processor) with python3"
make PETSC_DIR=${PETSC_DIR} PYTHON=python3 -C test-demos
