File: upstream-tests

package info (click to toggle)
glaze 7.0.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,036 kB
  • sloc: cpp: 142,035; sh: 109; ansic: 26; makefile: 12
file content (25 lines) | stat: -rw-r--r-- 545 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
#!/bin/sh

set -eu

EXTRA_ARGS=""

mkdir -p "$AUTOPKGTEST_TMP"
cp -r tests "$AUTOPKGTEST_TMP"
cp -r cmake "$AUTOPKGTEST_TMP"/cmake
cp debian/tests/CMakeLists.txt "$AUTOPKGTEST_TMP"/CMakeLists.txt

arch="$(dpkg --print-architecture)"
case "$arch" in
  arm64|ppc64el|riscv64|s390x)
    echo "Networking tests: DISABLED"
    EXTRA_ARGS="-Dglaze_BUILD_NETWORKING_TESTS=OFF"
    ;;
  *)
    echo "Networking tests: ENABLED"
    ;;
esac

cmake -S . -B build ${EXTRA_ARGS}
cmake --build build -- -j"$(nproc)"
ctest --test-dir build --output-on-failure