testsuite: add test for static archives in Libs:

feature/tap-sh
William Pitcock 2013-02-24 06:58:51 -06:00
parent a2323ee923
commit 2936927008
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,10 @@
prefix=/usr/local
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
Name: static-archive-libs
Description: A testing pkg-config file
Version: 1.2.3
Libs: /libfoo.a -pthread
Cflags: -I${includedir}/foo

View File

@ -90,6 +90,8 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs circular-1" \
'-lcircular-2 -lcircular-3 -lcircular-1'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs circular-3" \
'-lcircular-1 -lcircular-2 -lcircular-3'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs static-archive-libs" \
'/libfoo.a -pthread'
# 2) tests for PKG_CONFIG_PATH order
run_test "PKG_CONFIG_PATH='${selfdir}/lib1${PATH_SEP}${selfdir}/lib2' ${1} --libs foo" \