File: test-xtensor

package info (click to toggle)
xtensor 0.25.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,476 kB
  • sloc: cpp: 65,302; makefile: 202; python: 171; javascript: 8
file content (28 lines) | stat: -rwxr-xr-x 715 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
set -e

if [ "x${CC}" = "x" ]; then
  CC=gcc
fi
if [ "x${CXX}" = "x" ]; then
  CXX=g++
fi

#if dpkg-query -s libxsimd-dev >/dev/null 2>&1; then
#  BUILD_OPTIONS=-DXTENSOR_USE_XSIMD=ON
#fi
# xsimd 12 support is not available yet
BUILD_OPTIONS=-DXTENSOR_USE_XSIMD=OFF

# mark i386 as having flakey tests (xreducer.average)
DEB_HOST_ARCH=`dpkg-architecture -q DEB_HOST_ARCH`
if [ "x$DEB_HOST_ARCH" = "xi386" ]; then
  BUILD_OPTIONS="${BUILD_OPTIONS} -DCMAKE_CXX_FLAGS='-DMARK_FLAKEY_TEST'"
fi

cp -r ./test/* "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"

echo "Testing with ${CC} and ${CXX}:"
mkdir build && cd build
CC=${CC} CXX=${CXX} cmake .. ${BUILD_OPTIONS}
CTEST_OUTPUT_ON_FAILURE=1 make -j $(nproc) VERBOSE=1 xtest