forked from ariadne/pkgconf
tests: add test fixture for bogus .pc files
parent
b77c04f343
commit
8f6e071d58
|
@ -45,6 +45,7 @@ EXTRA_DIST = pkg.m4 \
|
||||||
tests/lib1/sysroot-dir.pc \
|
tests/lib1/sysroot-dir.pc \
|
||||||
tests/lib1/circular-2.pc \
|
tests/lib1/circular-2.pc \
|
||||||
tests/lib1/multiline.pc \
|
tests/lib1/multiline.pc \
|
||||||
|
tests/lib1/multiline-bogus.pc \
|
||||||
tests/lib1/tilde-quoting.pc \
|
tests/lib1/tilde-quoting.pc \
|
||||||
tests/lib1/circular-3.pc \
|
tests/lib1/circular-3.pc \
|
||||||
tests/lib1/no-trailing-newline.pc \
|
tests/lib1/no-trailing-newline.pc \
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
prefix=/test
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${prefix}/lib
|
||||||
|
includedir=${prefix}/include
|
||||||
|
|
||||||
|
Name: multiline
|
||||||
|
Description: A multiline
|
||||||
|
description blah blah blah
|
||||||
|
Version: 1.2.3
|
|
@ -13,6 +13,7 @@ tests_init \
|
||||||
tilde_quoting \
|
tilde_quoting \
|
||||||
paren_quoting \
|
paren_quoting \
|
||||||
multiline_field \
|
multiline_field \
|
||||||
|
multiline_bogus_header \
|
||||||
escaped_backslash \
|
escaped_backslash \
|
||||||
flag_order_1 \
|
flag_order_1 \
|
||||||
flag_order_2 \
|
flag_order_2 \
|
||||||
|
@ -117,6 +118,14 @@ multiline_field_body()
|
||||||
pkgconf --list-all
|
pkgconf --list-all
|
||||||
}
|
}
|
||||||
|
|
||||||
|
multiline_bogus_header_body()
|
||||||
|
{
|
||||||
|
export PKG_CONFIG_PATH="${selfdir}/lib1"
|
||||||
|
atf_check \
|
||||||
|
-s eq:0 \
|
||||||
|
pkgconf --exists multiline-bogus
|
||||||
|
}
|
||||||
|
|
||||||
escaped_backslash_body()
|
escaped_backslash_body()
|
||||||
{
|
{
|
||||||
atf_check \
|
atf_check \
|
||||||
|
|
Loading…
Reference in New Issue