tests: add test for github #123

feature/tap-sh
William Pitcock 2017-07-16 17:33:42 -05:00
parent 74666bff38
commit 95b4930aac
3 changed files with 17 additions and 1 deletions

View File

@ -80,6 +80,7 @@ EXTRA_DIST = pkg.m4 \
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/lib1/malformed-1.pc \
tests/lib1/explicit-sysroot.pc \
tests/test_env.sh \ tests/test_env.sh \
$(test_scripts) \ $(test_scripts) \
doc/conf.py \ doc/conf.py \

View File

@ -0,0 +1,7 @@
prefix=/usr
datarootdir=${prefix}/share
pkgdatadir=${pc_sysrootdir}/${datarootdir}/test
Name: Test
Description: Testing pc_sysrootdir auto-expansion
Version: 1.0

View File

@ -26,7 +26,8 @@ tests_init \
sysroot_munge \ sysroot_munge \
virtual_variable \ virtual_variable \
fragment_collision \ fragment_collision \
malformed_1 malformed_1 \
explicit_sysroot
case_sensitivity_body() case_sensitivity_body()
{ {
@ -231,3 +232,10 @@ malformed_1_body()
atf_check -s exit:1 -o ignore \ atf_check -s exit:1 -o ignore \
pkgconf --validate --with-path="${selfdir}/lib1" malformed-1 pkgconf --validate --with-path="${selfdir}/lib1" malformed-1
} }
explicit_sysroot_body()
{
export PKG_CONFIG_SYSROOT_DIR=/sysroot
atf_check -o inline:"/sysroot/usr/share/test\n" \
pkgconf --with-path="${selfdir}/lib1" --variable=pkgdatadir explicit-sysroot
}