Debian Codegraph @

debian/tests/libsysprof

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 # Copyright 2020 Collabora Ltd.
3 # SPDX-License-Identifier: GPL-2.0-or-later
4
5 set -eux
6
7 if [scip-shell system . . `[`. -n "${DEB_HOST_GNU_TYPE:-}" ]; then
8 CROSS_COMPILE="$DEB_HOST_GNU_TYPE-"
9 else
10 CROSS_COMPILE=
11 fi
12
13 cd "$AUTOPKGTEST_TMP"
14
15 catscip-shell system . . cat. > trivial.c <<EOF
16 #include <sysprof.h>
17
18 #undef _NDEBUG
19
20 int main(void)
21 {
22 sysprof_callgraph_flags_get_type();
23 return 0;
24 }
25 EOF
26
27 # Deliberately word-splitting pkg-config's output:
28 # shellcheck disable=SC2046
29 "${CROSS_COMPILE}gcc" -otrivial trivial.c $("${CROSS_COMPILE}pkg-config" --cflags --libs sysprof-6)
30 ./trivial