tests: add test for github #123

William Pitcock 2017-07-16 17:33:42 -05:00
parent 03f7841065
commit 24e0462c3e
3 changed files with 17 additions and 1 deletions

View File

@ -77,6 +77,7 @@ EXTRA_DIST = pkg.m4 \
tests/lib1/fragment-quoting-6.pc \
tests/lib1/fragment-quoting-7.pc \
tests/lib1/malformed-1.pc \
tests/lib1/explicit-sysroot.pc \
tests/test_env.sh \
$(test_scripts) \
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 \
virtual_variable \
fragment_collision \
malformed_1
malformed_1 \
explicit_sysroot
case_sensitivity_body()
{
@ -231,3 +232,10 @@ malformed_1_body()
atf_check -s exit:1 -o ignore \
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
}