tests: regress: add regression test for malformed package testcase

feature/tap-sh
William Pitcock 2017-05-19 23:43:47 -05:00
parent d280060ed7
commit 4a508b4fd9
2 changed files with 9 additions and 1 deletions

View File

@ -76,6 +76,7 @@ EXTRA_DIST = pkg.m4 \
tests/lib1/fragment-quoting-5.pc \ tests/lib1/fragment-quoting-5.pc \
tests/lib1/fragment-quoting-6.pc \ tests/lib1/fragment-quoting-6.pc \
tests/lib1/fragment-quoting-7.pc \ tests/lib1/fragment-quoting-7.pc \
tests/lib1/malformed-1.pc \
tests/test_env.sh \ tests/test_env.sh \
$(test_scripts) \ $(test_scripts) \
doc/conf.py \ doc/conf.py \

View File

@ -25,7 +25,8 @@ tests_init \
pcpath \ pcpath \
sysroot_munge \ sysroot_munge \
virtual_variable \ virtual_variable \
fragment_collision fragment_collision \
malformed_1
case_sensitivity_body() case_sensitivity_body()
{ {
@ -224,3 +225,9 @@ fragment_collision_body()
atf_check -o inline:"-D_BAZ -D_BAR -D_FOO -D_THREAD_SAFE -pthread \n" \ atf_check -o inline:"-D_BAZ -D_BAR -D_FOO -D_THREAD_SAFE -pthread \n" \
pkgconf --with-path="${selfdir}/lib1" --cflags fragment-collision pkgconf --with-path="${selfdir}/lib1" --cflags fragment-collision
} }
malformed_1_body()
{
atf_check -s exit:1 -o ignore \
pkgconf --validate --with-path="${selfdir}/lib1" malformed-1
}