summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-04-07 10:35:33 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-04-07 13:45:55 +0200
commitcc72089397eaea2f23a8202aa6e4ccdbf5496929 (patch)
tree75a9153618370e7906f1cd70b01ddc8ef7e3240e
parent84a4d94b29958ace9b6d9f7022f557aa7af2f4f0 (diff)
downloadgnutls-cc72089397eaea2f23a8202aa6e4ccdbf5496929.tar.gz
tests: do not run pkgconfig test in systems with invalid libidn flags
This prevents our test from failing, due to invalid flags found in a dependency of ours. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rwxr-xr-xtests/pkgconfig.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pkgconfig.sh b/tests/pkgconfig.sh
index 75bb59d10a..6bd4e62f9c 100755
--- a/tests/pkgconfig.sh
+++ b/tests/pkgconfig.sh
@@ -34,6 +34,13 @@ ${PKGCONFIG} --version >/dev/null || exit 77
PKG_CONFIG_PATH=${top_builddir}/lib
export PKG_CONFIG_PATH
+OTHER=$(${PKGCONFIG} --libs --static libidn)
+OTHER="${OTHER} $(${PKGCONFIG} --libs --static p11-kit-1)"
+if test -n "${OTHER}" && test "${OTHER#*-R}" != "$OTHER";then
+ echo "Found invalid string in libidn flags: ${OTHER}"
+ exit 77
+fi
+
set -e
cat >$TMPFILE <<__EOF__