Debian Codegraph @

debian/tests/adios2-serial-test

raw symbols SCIP
1 #!/bin/bash
2
3 set -e
4
5 # The testing dir using ctest is tightly bound to the cmake build
6 # but testing/install runs independently
7
8 DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH)
9
10 declare -a EXTRA_CTEST_FLAGS
11
12 if [ "x${EXTRA_CTEST_FLAGS}" != "x" ]; then
13 echo "testing with EXTRA_CTEST_FLAGS=${EXTRA_CTEST_FLAGS[@]}"
14 fi
15
16 cd testing/install
17
18 # install tests must be run separately, see upstream Issue#3795
19 # We don't have paraview catalyst, so exclude the Catalyst test.
20 for testdir in `find . -mindepth 1 -maxdepth 1 -name CatalystEnginePlugin -prune -o -type d -print`; do
21 echo Testing $testdir
22 cd $testdir
23 mkdir build
24 cd build
25 cmake -DCMAKE_PREFIX_PATH=/usr/lib/${DEB_HOST_MULTIARCH}/cmake/adios2/serial \
26 -DCMAKE_VERBOSE_MAKEFILE=ON \
27 -DCMAKE_BUILD_TYPE=Debug \
28 ..
29 make
30 ADIOS2_PLUGIN_PATH=/usr/lib/${DEB_HOST_MULTIARCH}/adios2/serial/plugins ctest --output-on-failure "${EXTRA_CTEST_FLAGS[@]}"
31 cd ../..
32 done
33
34 # gratuitous use of py3versions to satisfy lintian test-leaves-python-version-untested
35 PY3VER=`py3versions -sv`