testsuite: add tests for variable whitespace
parent
1d299f52bb
commit
159f18a84d
|
@ -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 \
|
||||
|
|
|
@ -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}
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue