Add test for Libs.private deduplication (issue #51).

pull/52/head
William Pitcock 2013-08-23 02:41:59 +00:00
parent da179fd8cf
commit 2a638d4f32
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,6 @@
Name: private-libs-duplication
Version: 1.0
Requires: foo
Libs: -lprivate
Libs.private: -lfoo

View File

@ -116,6 +116,8 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --static --libs argv-parse-2" \
'-pthread '
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-libs-duplication -lfoo'
# 4) tests for parser bugs
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs dos-lineendings" \