File: test-dolfin-python

package info (click to toggle)
dolfin 2018.1.0.post1-16
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 28,764 kB
  • sloc: xml: 104,040; cpp: 98,856; python: 22,511; makefile: 204; sh: 182
file content (15 lines) | stat: -rw-r--r-- 552 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# MPI tests are set up to run on 3 processes.
N_MPI=3
export OMPI_MCA_plm_rsh_agent=/bin/false
export OMPI_MCA_rmaps_base_oversubscribe=1

echo "=== python unit test (serial) ==="
python3 -m pytest python/test/unit/
echo "=== python unit test (MPI) ==="
mpirun -n ${N_MPI} python3 -m pytest python/test/unit/

python3 python/demo/generate-demo-files.py
echo "=== python demo test (serial) ==="
python3 -m pytest -v python/demo/test.py
echo "=== python demo test (MPI) ==="
python3 -m pytest -v python/demo/test.py --mpiexec=mpiexec --num-proc=${N_MPI}