From 7c461f0396d413acb9a950f3df9ea6d062896cd7 Mon Sep 17 00:00:00 2001 From: Corentin Noël Date: Sun, 3 Jun 2018 16:37:44 +0100 Subject: Add pkg-config files for the apt-pkg and apt-inst libraries Closes: #439121 --- debian/tests/pkg-config-test | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 debian/tests/pkg-config-test (limited to 'debian/tests/pkg-config-test') diff --git a/debian/tests/pkg-config-test b/debian/tests/pkg-config-test new file mode 100644 index 000000000..cb8d1ffb0 --- /dev/null +++ b/debian/tests/pkg-config-test @@ -0,0 +1,22 @@ +#!/bin/sh + +set -e + +WORKDIR=$(mktemp -d) +trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM +cd $WORKDIR +cat < pkgconfigtest.c +#include + +int main() +{ + printf("Apt Version: %s \n", pkgVersion); + return 0; +} +EOF + +g++ -o pkgconfigtest pkgconfigtest.c `pkg-config --cflags --libs apt-pkg apt-inst` +echo "build: OK" +[ -x pkgconfigtest ] +./pkgconfigtest +echo "run: OK" -- cgit v1.2.3-70-g09d2