From f93870efd9b80edf2d91e4b7baa90623337fbb92 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 26 Jul 2022 18:05:31 +0000 Subject: [PATCH] tests: add testcase for legacy FDO rules plus pc_sysrootdir --- tests/sysroot.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/sysroot.sh b/tests/sysroot.sh index 6e9ce01..5ee039d 100755 --- a/tests/sysroot.sh +++ b/tests/sysroot.sh @@ -9,7 +9,8 @@ tests_init \ do_not_duplicate_sysroot_dir \ uninstalled \ uninstalled_pkgconf1 \ - uninstalled_fdo + uninstalled_fdo \ + uninstalled_fdo_pc_sysrootdir do_not_eat_slash_body() { @@ -96,3 +97,14 @@ uninstalled_fdo_body() -o inline:"-L/test/lib -lomg \n" \ 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 +}