From 32bd6bd7003fd1194ec31b8be2bd2aa9ebc2deb7 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 7 Dec 2015 23:29:27 +0100 Subject: [PATCH] Add a regression tests about define-variable --- tests/lib1/typelibdir.pc | 11 +++++++++++ tests/run.sh.in | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 tests/lib1/typelibdir.pc 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