tests: add an additional test for more complicated --static relationships

feature/tap-sh
William Pitcock 2015-05-21 22:03:02 -05:00
parent 17b0c40d2a
commit b26374a5ad
2 changed files with 14 additions and 0 deletions

12
tests/lib1/static-libs.pc Normal file
View File

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

View File

@ -118,6 +118,8 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --static --cflags baz" \
'-fPIC' '-I/usr/include/foo' '-DFOO_STATIC'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --static --libs-only-l private-libs-duplication" \
'-lprivate -lbaz -lfoo -lbar -lzee'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --static --libs static-libs" \
'-lbar -lbar-private -lfoo'
# 4) tests for parser bugs
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs dos-lineendings" \