Debian Codegraph @

debian/tests/test-adios4dolfinx

raw
1 #!/bin/bash
2 set -e
3
4 DEB_HOST_ARCH=$( dpkg-architecture -qDEB_HOST_ARCH )
5
6 TEST_SELECTION="not (test_original_checkpoint)"
7
8 # s390x segfaults in all known tests. Something is amiss.
9 # Adios2 upstream acknowledges big-endian support is not tested.
10 # (some adios2 and dolfinx VTX tests fail, some pass)
11 # Assume all big-endian systems will fail adios4dolfinx and skip them all.
12 DEB_HOST_ARCH_ENDIAN=$(dpkg-architecture -qDEB_HOST_ARCH_ENDIAN)
13 if [ "x${DEB_HOST_ARCH_ENDIAN}" = "xbig" ]; then
14 echo "Adios2 support is not tested on big-endian systems."
15 else
16 n_proc=`nproc`
17 echo "${n_proc} CPUs are available"
18 for pyver in `py3versions -sv`; do
19 # By default, pytest tmp_path retains the temporary directory for the last 3
20 # pytest invocations.
21 # Using the --basetemp option will remove the directory before every run,
22 # effectively meaning the temporary directories of only the most recent run
23 # will be kept. We definitely do not want to keep old runs, because they may
24 # result in adios4dolfinx trying to read in output files generated with a
25 # different PETSc scalar type (real vs complex).
26 python$pyver -m pytest -v --basetemp=${AUTOPKGTEST_TMP} --color=no -k "${TEST_SELECTION}" tests
27 done
28 fi