tests: add reduced version of freebsd gtk+-3.0 crappy output situation as a testcase

pull/119/head
William Pitcock 2017-05-05 01:40:09 -05:00
parent 5940ad6412
commit ce47fa8d89
6 changed files with 31 additions and 1 deletions

View File

@ -65,6 +65,10 @@ EXTRA_DIST = pkg.m4 \
tests/lib1/flag-order-1.pc \ tests/lib1/flag-order-1.pc \
tests/lib1/flag-order-3.pc \ tests/lib1/flag-order-3.pc \
tests/lib1/variable-whitespace.pc \ tests/lib1/variable-whitespace.pc \
tests/lib1/fragment-collision.pc \
tests/lib1/fragment-collision-intermediary.pc \
tests/lib1/fragment-collision-1.pc \
tests/lib1/fragment-collision-2.pc \
tests/lib1/fragment-quoting.pc \ tests/lib1/fragment-quoting.pc \
tests/lib1/fragment-quoting-2.pc \ tests/lib1/fragment-quoting-2.pc \
tests/lib1/fragment-quoting-3.pc \ tests/lib1/fragment-quoting-3.pc \

View File

@ -0,0 +1,4 @@
Name: fragment-collision-1
Version: 0
Description: fragment collision test package
Cflags: -D_THREAD_SAFE -pthread

View File

@ -0,0 +1,4 @@
Name: fragment-collision-2
Version: 0
Description: fragment collision test package
CFlags: -D_FOO

View File

@ -0,0 +1,5 @@
Name: fragment-collision-intermediary
Version: 0
Description: fragment collision test package
Requires.private: fragment-collision-1, fragment-collision-2
CFlags: -D_BAR

View File

@ -0,0 +1,6 @@
Name: fragment-collision
Version: 0
Description: fragment collision test package
Requires: fragment-collision-2, fragment-collision-intermediary
Requires.private: fragment-collision-1
Cflags: -D_BAZ

View File

@ -24,7 +24,8 @@ tests_init \
idirafter_ordering \ idirafter_ordering \
pcpath \ pcpath \
sysroot_munge \ sysroot_munge \
virtual_variable virtual_variable \
fragment_collision
case_sensitivity_body() case_sensitivity_body()
{ {
@ -217,3 +218,9 @@ virtual_variable_body()
atf_check -o inline:"${pcpath}\n" \ atf_check -o inline:"${pcpath}\n" \
pkgconf --variable=pc_path pkgconf pkgconf --variable=pc_path pkgconf
} }
fragment_collision_body()
{
atf_check -o inline:"-D_BAZ -D_BAR -D_FOO -D_THREAD_SAFE -pthread \n" \
pkgconf --with-path="${selfdir}/lib1" --cflags fragment-collision
}