Debian Codegraph @

debian/tests/test-dolfin64-python-unittest

raw
1 # MPI tests are set up to run on 3 processes.
2 N_MPI=3
3 export PRTE_MCA_plm_ssh_agent=/bin/false
4 export PRTE_MCA_rmaps_default_mapping_policy=:oversubscribe
5 export OMPI_MCA_btl_base_warn_component_unused=0
6
7 export PETSC_DIR=/usr/lib/petsc64
8 export SLEPC_DIR=/usr/lib/slepc64
9
10 PYVER=$(py3versions -sv)
11 case " armel riscv64 " in \
12 *\ ${DEB_HOST_ARCH}\ *) PYVER=$(py3versions -dv);; \
13 esac
14
15 for pyver in $PYVER; do
16 echo "=== python $pyver 64-bit unit test (serial) ==="
17 DOLFIN_LIB_NAME_EXT=64 python$pyver -m pytest python/test/unit/
18 done
19
20 for pyver in $PYVER; do
21 echo "=== python $pyver 64-bit unit test (MPI) ==="
22 DOLFIN_LIB_NAME_EXT=64 mpirun -n ${N_MPI} python$pyver -m pytest python/test/unit/ --color=no
23 done