From 7ecf1e278dd2093187bffd00ee821f20bb7da457 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 15 Mar 2013 17:12:06 -0500 Subject: [PATCH] tests: add tests for bug #47 --- tests/lib1/framework-1.pc | 9 +++++++++ tests/lib1/framework-2.pc | 10 ++++++++++ tests/run.sh.in | 6 ++++++ 3 files changed, 25 insertions(+) create mode 100644 tests/lib1/framework-1.pc create mode 100644 tests/lib1/framework-2.pc diff --git a/tests/lib1/framework-1.pc b/tests/lib1/framework-1.pc new file mode 100644 index 0000000..9964f78 --- /dev/null +++ b/tests/lib1/framework-1.pc @@ -0,0 +1,9 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: framework-1 +Description: Another pkg-config test +Version: 1.3 +Libs: -F${libdir} -framework framework-1 diff --git a/tests/lib1/framework-2.pc b/tests/lib1/framework-2.pc new file mode 100644 index 0000000..5caad80 --- /dev/null +++ b/tests/lib1/framework-2.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: framework-2 +Description: Another pkg-config test +Version: 1.3 +Libs: -F${libdir} -framework framework-2 +Requires: framework-1 diff --git a/tests/run.sh.in b/tests/run.sh.in index f6a53a9..3215287 100644 --- a/tests/run.sh.in +++ b/tests/run.sh.in @@ -214,6 +214,12 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs nocflag; echo \$?" \ run_test "cp ${selfdir}/lib1/foo.pc . && ${1} --libs foo.pc; rm -f foo.pc" \ '-lfoo' +# test 47 - framework flags +run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs framework-1" \ + "-F/usr/lib -framework framework-1" +run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs framework-2" \ + "-F/usr/lib -framework framework-1 -framework framework-2" + # 10) tests for internal getopt implementation with options at the end if [ "x@STRICT_MODE@" = "xno" ]; then run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} foo --libs" \