File: xsimd-test

package info (click to toggle)
xsimd 14.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,264 kB
  • sloc: cpp: 41,590; sh: 547; makefile: 190; python: 117
file content (26 lines) | stat: -rwxr-xr-x 487 bytes parent folder | download | duplicates (2)
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
#!/bin/bash
set -e

uname -a

if [ "$(dpkg-architecture -q DEB_HOST_ARCH_OS)" = "linux" ]; then
  lscpu
else
  cat /proc/cpuinfo
fi

TESTDIR=test/run_test${TESTDIR_SUFFIX}

echo -e "\nRunning tests from $TESTDIR"

mkdir -p $TESTDIR
cd $TESTDIR

if [ "$(dpkg-architecture -qDEB_HOST_ARCH)" = "armhf" ]; then
    CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -march=armv7-a+fp"
fi

cmake ${CMAKE_OPTIONS} -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS}" ..
make VERBOSE=1

ctest --verbose --output-on-failure