forked from ariadne/pkgconf
tests: add testcases for confirming desired sysroot behavior regarding -uninstalled packages
parent
b0802cb3d1
commit
d9ec3ee642
|
@ -6,7 +6,9 @@ tests_init \
|
|||
cflags \
|
||||
variable \
|
||||
do_not_eat_slash \
|
||||
do_not_duplicate_sysroot_dir
|
||||
do_not_duplicate_sysroot_dir \
|
||||
uninstalled \
|
||||
uninstalled_fdo
|
||||
|
||||
do_not_eat_slash_body()
|
||||
{
|
||||
|
@ -61,3 +63,24 @@ do_not_duplicate_sysroot_dir_body()
|
|||
-o inline:"-I${SYSROOT_DIR}/usr/include \n" \
|
||||
pkgconf --cflags sysroot-dir-4
|
||||
}
|
||||
|
||||
uninstalled_body()
|
||||
{
|
||||
export PKG_CONFIG_PATH="${selfdir}/lib1"
|
||||
export PKG_CONFIG_SYSROOT_DIR="/sysroot"
|
||||
|
||||
atf_check \
|
||||
-o inline:"-lomg \n" \
|
||||
pkgconf --libs omg
|
||||
}
|
||||
|
||||
uninstalled_fdo_body()
|
||||
{
|
||||
export PKG_CONFIG_PATH="${selfdir}/lib1"
|
||||
export PKG_CONFIG_SYSROOT_DIR="/sysroot"
|
||||
export PKG_CONFIG_FDO_SYSROOT_RULES="1"
|
||||
|
||||
atf_check \
|
||||
-o inline:"-L/sysroot/test/lib -lomg \n" \
|
||||
pkgconf --libs omg
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue