diff --git a/Makefile.am b/Makefile.am index ae5468c..07aea7d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -64,6 +64,7 @@ EXTRA_DIST = pkg.m4 \ tests/lib1/provides-request-simple.pc \ tests/lib1/flag-order-1.pc \ tests/lib1/flag-order-3.pc \ + tests/lib1/variable-whitespace.pc \ tests/test_env.sh \ $(test_scripts) \ doc/conf.py \ diff --git a/tests/lib1/variable-whitespace.pc b/tests/lib1/variable-whitespace.pc new file mode 100644 index 0000000..8d8eab2 --- /dev/null +++ b/tests/lib1/variable-whitespace.pc @@ -0,0 +1,11 @@ + +prefix=/test +exec_prefix= ${prefix} +libdir= ${prefix}/lib64 +includedir=${prefix}/include + +Name: variable-whitespace +Description: A test for variable whitespace +Version: 2.12.3 +Libs: -lvariable-whitespace -L${libdir} +Cflags: -I${includedir} diff --git a/tests/parser.sh b/tests/parser.sh index 7e6bdda..203236a 100755 --- a/tests/parser.sh +++ b/tests/parser.sh @@ -17,7 +17,8 @@ tests_init \ flag_order_2 \ flag_order_3 \ flag_order_4 \ - quoted + quoted \ + variable_whitespace comments_body() { @@ -143,3 +144,11 @@ flag_order_4_body() -o inline:"-L/test/lib -Wl,--start-group -lfoo -lbar -Wl,--end-group -lfoo \n" \ pkgconf --libs flag-order-3 foo } + +variable_whitespace_body() +{ + export PKG_CONFIG_PATH="${selfdir}/lib1" + atf_check \ + -o inline:"-I/test/include \n" \ + pkgconf --cflags variable-whitespace +}