tests: add test fixture for bogus .pc files

feature/tap-sh
William Pitcock 2018-06-16 16:35:19 -05:00
parent b77c04f343
commit 8f6e071d58
3 changed files with 19 additions and 0 deletions

View File

@ -45,6 +45,7 @@ EXTRA_DIST = pkg.m4 \
tests/lib1/sysroot-dir.pc \
tests/lib1/circular-2.pc \
tests/lib1/multiline.pc \
tests/lib1/multiline-bogus.pc \
tests/lib1/tilde-quoting.pc \
tests/lib1/circular-3.pc \
tests/lib1/no-trailing-newline.pc \

View File

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

View File

@ -13,6 +13,7 @@ tests_init \
tilde_quoting \
paren_quoting \
multiline_field \
multiline_bogus_header \
escaped_backslash \
flag_order_1 \
flag_order_2 \
@ -117,6 +118,14 @@ multiline_field_body()
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()
{
atf_check \