fix(linux): Fix autopkgtests

Autopkgtests couldn't find pkg-config, so this change adds that as
test dependency.

(cherry picked from commit 71462d9705)
This commit is contained in:
Eberhard Beilharz 2023-02-07 11:19:55 +01:00
parent f2f39efb8a
commit 096643395b
No known key found for this signature in database
GPG key ID: E9140597606020D3
3 changed files with 8 additions and 6 deletions

View file

@ -37,8 +37,8 @@ Build-Depends:
metacity,
gawk,
Standards-Version: 4.6.1
Vcs-Git: https://github.com/keymanapp/keyman.git [linux/debian]
Vcs-Browser: https://github.com/keymanapp/keyman/tree/master/linux/debian
Vcs-Git: https://github.com/keymanapp/keyman.git -b stable-16.0 [linux/debian]
Vcs-Browser: https://github.com/keymanapp/keyman/tree/stable-16.0/linux/debian
Homepage: https://www.keyman.com
Rules-Requires-Root: binary-targets

View file

@ -1,2 +1,4 @@
Tests: test-build
Depends: @, build-essential
Depends: @,
build-essential,
pkg-config,

View file

@ -7,7 +7,7 @@ set -e
WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR
cd "$WORKDIR"
# Test all include files are available
cat <<EOF > keymantest.c
@ -15,7 +15,7 @@ cat <<EOF > keymantest.c
km_kbp_context c;
EOF
gcc keymantest.c `pkg-config --cflags --libs keyman_kmn_processor`
gcc keymantest.c "$(pkg-config --cflags --libs keyman_kmn_processor)"
echo "build 1: OK"
# Test pkg-config file - include without path
@ -24,5 +24,5 @@ cat <<EOF > keymantest.c
km_kbp_context c;
EOF
gcc keymantest.c `pkg-config --cflags --libs keyman_kmn_processor`
gcc keymantest.c "$(pkg-config --cflags --libs keyman_kmn_processor)"
echo "build 2: OK"