File: test-script

package info (click to toggle)
ensmallen 2.22.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,680 kB
  • sloc: cpp: 42,208; sh: 186; makefile: 35
file content (12 lines) | stat: -rwxr-xr-x 576 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e
set -x
# Choose location for test executable
e=$(mktemp --tmpdir=${AUTOPKGTEST_TMP} ensmallen-test-XXXXXX)
# Some tests are sensitive to the excess in double precision of i386.
test "$(dpkg --print-architecture)" != "i386" || FLOAT_STORE=-ffloat-store
# Build outside tests to reduce possibility of getting build rather
# than installed ensmallen files via #include.
c++ -O -Wall $FLOAT_STORE -o ${e} tests/*.cpp -pthread $(pkg-config armadillo --cflags --libs) -lpthread
# cd tests because the executable reads data/* files.
cd tests && ${e} --durations yes