Add a regression tests about define-variable

feature/tap-sh
Baptiste Daroussin 2015-12-07 23:29:27 +01:00
parent b46d2f96fa
commit 32bd6bd700
2 changed files with 13 additions and 0 deletions

11
tests/lib1/typelibdir.pc Normal file
View File

@ -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:

View File

@ -270,6 +270,8 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs prefix-foo1 prefix-foo2"
'-L/test/bar/lib -lfoo1 -lfoo2' '-L/test/bar/lib -lfoo1 -lfoo2'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags prefix-foo1 prefix-foo2" \ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags prefix-foo1 prefix-foo2" \
'-I/test/bar/include/foo -DBAR -fPIC -DFOO' '-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 # 10) tests for internal getopt implementation with options at the end
if [ "x@STRICT_MODE@" = "xno" ]; then if [ "x@STRICT_MODE@" = "xno" ]; then