| 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 |
DEB_HOST_ARCH=$( dpkg-architecture -q DEB_HOST_ARCH ) |
| 11 |
|
| 12 |
PYVER=$(py3versions -sv) |
| 13 |
case " armel riscv64 " in \ |
| 14 |
*\ ${DEB_HOST_ARCH}\ *) PYVER=$(py3versions -dv);; \ |
| 15 |
esac |
| 16 |
|
| 17 |
# the -k keyword option doesn't handle the hyphen in navier-stokes or cahn-hilliard with multiple tests skipped |
| 18 |
# so need to identify by single name |
| 19 |
TESTS_SKIPPED=cahn |
| 20 |
MULTIPLE_TESTS_SKIPPED="hyperelasticity elastodynamics navier elasticity" |
| 21 |
|
| 22 |
case " i386 armhf " in \ |
| 23 |
*\ ${DEB_HOST_ARCH}\ *) EXTRA_TESTS_SKIPPED="iterative block meshview assignment";; \ |
| 24 |
esac |
| 25 |
|
| 26 |
case " s390x " in \ |
| 27 |
*\ ${DEB_HOST_ARCH}\ *) EXTRA_TESTS_SKIPPED="matnest";; \ |
| 28 |
esac |
| 29 |
|
| 30 |
for test in $MULTIPLE_TESTS_SKIPPED $EXTRA_TESTS_SKIPPED; do |
| 31 |
TESTS_SKIPPED="$TESTS_SKIPPED or $test" |
| 32 |
done |
| 33 |
TEST_KEYWORDS="not ( $TESTS_SKIPPED )" |
| 34 |
|
| 35 |
python3 python/demo/generate-demo-files.py |
| 36 |
|
| 37 |
for pyver in $PYVER; do |
| 38 |
echo "=== python $pyver 64-bit demo test (serial) ===" |
| 39 |
DOLFIN_LIB_NAME_EXT=64 python$pyver -m pytest -v -k "${TEST_KEYWORDS}" python/demo/test.py |
| 40 |
done |
| 41 |
|
| 42 |
for pyver in $PYVER; do |
| 43 |
echo "=== python $pyver 64-bit demo test (MPI) ===" |
| 44 |
DOLFIN_LIB_NAME_EXT=64 python$pyver -m pytest -v -k "${TEST_KEYWORDS}" python/demo/test.py --mpiexec=mpiexec --num-proc=${N_MPI} |
| 45 |
done |