testsuite: add regression test for #111
parent
22db6891dd
commit
82ba7398c7
|
@ -65,6 +65,7 @@ EXTRA_DIST = pkg.m4 \
|
|||
tests/lib1/flag-order-1.pc \
|
||||
tests/lib1/flag-order-3.pc \
|
||||
tests/lib1/variable-whitespace.pc \
|
||||
tests/lib1/fragment-quoting.pc \
|
||||
tests/test_env.sh \
|
||||
$(test_scripts) \
|
||||
doc/conf.py \
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
prefix=/test
|
||||
exec_prefix=${prefix}
|
||||
libdir=${prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: fragment-quoting
|
||||
Description: A testing pkg-config file
|
||||
Version: 1.2.3
|
||||
Cflags: -fPIC -I${includedir}/foo -DQUOTED='"${prefix}/share/doc"'
|
||||
Cflags.private: -DFOO_STATIC
|
|
@ -18,7 +18,8 @@ tests_init \
|
|||
flag_order_3 \
|
||||
flag_order_4 \
|
||||
quoted \
|
||||
variable_whitespace
|
||||
variable_whitespace \
|
||||
fragment_quoting
|
||||
|
||||
comments_body()
|
||||
{
|
||||
|
@ -152,3 +153,11 @@ variable_whitespace_body()
|
|||
-o inline:"-I/test/include \n" \
|
||||
pkgconf --cflags variable-whitespace
|
||||
}
|
||||
|
||||
fragment_quoting_body()
|
||||
{
|
||||
export PKG_CONFIG_PATH="${selfdir}/lib1"
|
||||
atf_check \
|
||||
-o inline:"-fPIC -I/test/include/foo -DQUOTED='\"/test/share/doc\"' \n" \
|
||||
pkgconf --cflags fragment-quoting
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue