From c80b0887111a5957faa3786614160f45ea10d72d Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 9 Aug 2012 16:43:20 -0500 Subject: [PATCH] tests: add tests for issue #34 --- tests/lib1/intermediary-1.pc | 10 ++++++++++ tests/lib1/intermediary-2.pc | 10 ++++++++++ tests/run.sh.in | 2 ++ 3 files changed, 22 insertions(+) create mode 100644 tests/lib1/intermediary-1.pc create mode 100644 tests/lib1/intermediary-2.pc diff --git a/tests/lib1/intermediary-1.pc b/tests/lib1/intermediary-1.pc new file mode 100644 index 0000000..96facaf --- /dev/null +++ b/tests/lib1/intermediary-1.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: intermediary-1 +Description: A testing pkg-config file +Version: 1.2.3 +Libs: -L${libdir} -lintermediary-1 -lfoo -lbar -lbaz +Cflags: -fPIC -I${includedir}/foo diff --git a/tests/lib1/intermediary-2.pc b/tests/lib1/intermediary-2.pc new file mode 100644 index 0000000..85d7862 --- /dev/null +++ b/tests/lib1/intermediary-2.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: intermediary-2 +Description: A testing pkg-config file +Version: 1.2.3 +Libs: -L${libdir} -lintermediary-2 -lfoo -lbar -lbaz +Cflags: -fPIC -I${includedir}/foo diff --git a/tests/run.sh.in b/tests/run.sh.in index c754822..eb07410 100644 --- a/tests/run.sh.in +++ b/tests/run.sh.in @@ -76,6 +76,8 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --exists 'tilde >= 1.0.0'; echo \ '0' run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --exists '' 'foo'; echo \$?" \ '0' +run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs intermediary-1 intermediary-2" \ + '-lintermediary-1 -lintermediary-2 -lfoo -lbar -lbaz' # 2) tests for PKG_CONFIG_PATH order run_test "PKG_CONFIG_PATH=${selfdir}/lib1:${selfdir}/lib2 ${1} --libs foo" \