tests: add testcase for legacy FDO rules plus pc_sysrootdir

bsdstubs-errno
Ariadne Conill 2022-07-26 18:05:31 +00:00
parent 18e2406002
commit f93870efd9
1 changed files with 13 additions and 1 deletions

View File

@ -9,7 +9,8 @@ tests_init \
do_not_duplicate_sysroot_dir \ do_not_duplicate_sysroot_dir \
uninstalled \ uninstalled \
uninstalled_pkgconf1 \ uninstalled_pkgconf1 \
uninstalled_fdo uninstalled_fdo \
uninstalled_fdo_pc_sysrootdir
do_not_eat_slash_body() do_not_eat_slash_body()
{ {
@ -96,3 +97,14 @@ uninstalled_fdo_body()
-o inline:"-L/test/lib -lomg \n" \ -o inline:"-L/test/lib -lomg \n" \
pkgconf --libs omg pkgconf --libs omg
} }
uninstalled_fdo_pc_sysrootdir_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-sysroot
}