Add a regression tests about define-variable
parent
b46d2f96fa
commit
32bd6bd700
|
@ -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:
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue