File: ctest-suite

package info (click to toggle)
simdutf 7.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,244 kB
  • sloc: cpp: 60,074; ansic: 14,226; python: 3,364; sh: 321; makefile: 12
file content (22 lines) | stat: -rwxr-xr-x 823 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
#!/bin/sh
set -e

mkdir -p build-autopkgtest
cd build-autopkgtest

# Using CMAKE_SKIP_RPATH to prevent CMake from being helpful manipulating the RPATH of the test
# binaries to point to the *.so built by this script. We want the linker to point to the libs
# provided by the package instead.
cmake .. -G Ninja \
    -DSIMDUTF_BENCHMARKS=OFF \
    -DBUILD_SHARED_LIBS=ON \
    -DCMAKE_SKIP_RPATH=ON \
    -DCMAKE_BUILD_TYPE=Release

# Unfortunately CMake doesn't create a target to build just tests and upstream doesn't do so
# manually as well, so we need to build everything to trigger building the unit tests.
# Using just the 'tests/install' CMake target wouldn't be enough as some tests
# wouldn't run (such as the amalgamation_demo) and autopkgtests would fail.
cmake --build . --target all

ctest --output-on-failure