diff --git a/tests/lib1/typelibdir.pc b/tests/lib1/typelibdir.pc new file mode 100644 index 0000000..16e46c4 --- /dev/null +++ b/tests/lib1/typelibdir.pc @@ -0,0 +1,11 @@ +prefix=/test +exec_prefix=${prefix} +libdir=${prefix}/lib +includedir=${prefix}/include +typelibdir=${libdir}/typelibdir + +Name: test +Description: A testing pkg-config file +Version: 1.2.3 +Libs: -llib-1 +Cflags: diff --git a/tests/run.sh.in b/tests/run.sh.in index 8a87cc2..820c3d1 100644 --- a/tests/run.sh.in +++ b/tests/run.sh.in @@ -270,6 +270,8 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs prefix-foo1 prefix-foo2" '-L/test/bar/lib -lfoo1 -lfoo2' run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags prefix-foo1 prefix-foo2" \ '-I/test/bar/include/foo -DBAR -fPIC -DFOO' +run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --variable=typelibdir --define-variable='libdir=\${libdir}' typelibdir" \ + "\${libdir}/typelibdir" # 10) tests for internal getopt implementation with options at the end if [ "x@STRICT_MODE@" = "xno" ]; then