Debian Codegraph @

debian/tests/upstream-tests

raw symbols SCIP
1 #!/bin/sh
2
3 set -eu
4
5 EXTRA_ARGS=""
6
7 mkdir -p "$AUTOPKGTEST_TMP"
8 cp -r tests "$AUTOPKGTEST_TMP"
9 cp -r cmake "$AUTOPKGTEST_TMP"/cmake
10 cp debian/tests/CMakeLists.txt "$AUTOPKGTEST_TMP"/CMakeLists.txt
11
12 arch="$(dpkg --print-architecture)"
13 case "$arch" in
14 arm64|armhf|ppc64el|riscv64|s390x|loong64)
15 echo "Networking tests: DISABLED"
16 EXTRA_ARGS="-Dglaze_BUILD_NETWORKING_TESTS=OFF"
17 ;;
18 *)
19 echo "Networking tests: ENABLED"
20 ;;
21 esac
22
23 cmake -S . -B build ${EXTRA_ARGS} -Dglaze_USE_BUNDLED_ASIO=OFF
24 cmake --build build -- -j"$(nproc)"
25 ctest --test-dir build --output-on-failure