Debian Codegraph @

debian/tests/with-gcc-std23

raw
1 #!/bin/bash
2 # SPDX-License-Identifier: MIT
3 # Copyright (c) 2020 Nicholas Guriev <[email protected]>
4 set -e -u
5
6 what=$(basename "$0")
7 cppstd="${what#*std}"
8 parallel="$(nproc)"
9
10 BASH_XTRACEFD=1
11 set -x
12
13 cmake -B "${AUTOPKGTEST_TMP}" -S tests \
14 -DCMAKE_BUILD_TYPE=Release \
15 -DCMAKE_VERBOSE_MAKEFILE=ON \
16 -DCMAKE_CXX_FLAGS="-std=c++${cppstd}" \
17 -DGSL_CXX_STANDARD="${cppstd}"
18 make -C "${AUTOPKGTEST_TMP}" "-j${parallel:-1}"
19 make -C "${AUTOPKGTEST_TMP}" test "ARGS+=-j${parallel:-1} -V"