From d9ec3ee6420739c167a254ac0cb67d68d7e5e2d6 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 26 Jul 2022 16:45:30 +0000 Subject: [PATCH] tests: add testcases for confirming desired sysroot behavior regarding -uninstalled packages --- tests/sysroot.sh | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) 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 +}