Skip to content
Snippets Groups Projects

Add inspect-library helper

Merged Ludovico de Nittis requested to merge wip/denittis/inspect-library into master
Compare and Show latest version
39 files
+ 2679
155
Compare changes
  • Side-by-side
  • Inline
Files
39
+ 11
1
#!/bin/sh
# Copyright © 2019 Collabora Ltd.
# SPDX-License-Identifier: MIT
# (see debian/copyright)
# Check that the library can be linked by using pkg-config in the most
# obvious way.
set -e
set -u
set -x
cd "$AUTOPKGTEST_TMP"
tempdir="$(mktemp -d)"
cd "$tempdir"
cat > trivial.c <<'EOF'
#include <steam-runtime-tools/steam-runtime-tools.h>
@@ -19,3 +27,5 @@ EOF
gcc -o trivial trivial.c $(pkg-config --cflags --libs steam-runtime-tools-0)
test -x trivial
./trivial
rm -fr "$tempdir"
Loading