From 2a638d4f32627f4567ecaf7df5bdcaf14aef8cb6 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 23 Aug 2013 02:41:59 +0000 Subject: [PATCH] Add test for Libs.private deduplication (issue #51). --- tests/lib1/private-libs-duplication.pc | 6 ++++++ tests/run.sh.in | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 tests/lib1/private-libs-duplication.pc diff --git a/tests/lib1/private-libs-duplication.pc b/tests/lib1/private-libs-duplication.pc new file mode 100644 index 0000000..f8a4741 --- /dev/null +++ b/tests/lib1/private-libs-duplication.pc @@ -0,0 +1,6 @@ +Name: private-libs-duplication +Version: 1.0 +Requires: foo +Libs: -lprivate +Libs.private: -lfoo + diff --git a/tests/run.sh.in b/tests/run.sh.in index b0cf04f..2066eef 100644 --- a/tests/run.sh.in +++ b/tests/run.sh.in @@ -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" \