testsuite: add tests for variable whitespace

William Pitcock 2017-01-26 12:55:48 -06:00
parent 1d299f52bb
commit 159f18a84d
3 changed files with 22 additions and 1 deletions

View File

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

View File

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

View File

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