diff --git a/tests/sysroot.sh b/tests/sysroot.sh index 4171971..2d72448 100755 --- a/tests/sysroot.sh +++ b/tests/sysroot.sh @@ -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 +}