forked from ariadne/pkgconf
tests: add test for github #123
parent
03f7841065
commit
24e0462c3e
|
@ -77,6 +77,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 \
|
||||||
|
|
|
@ -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
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue