From ba3c2bd47c4d0b51288dd56a310312329c2aa143 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 6 Aug 2024 23:41:48 -0700 Subject: [PATCH] tests: add regression test for PKG_CONFIG_RELOCATE_PATHS=1 --- tests/regress.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/regress.sh b/tests/regress.sh index 9bed51a..b264f35 100755 --- a/tests/regress.sh +++ b/tests/regress.sh @@ -41,7 +41,8 @@ tests_init \ empty_tuple \ solver_requires_private_debounce \ billion_laughs \ - define_prefix_child_prefix_1 + define_prefix_child_prefix_1 \ + define_prefix_child_prefix_1_env # sysroot_munge \ @@ -343,3 +344,11 @@ define_prefix_child_prefix_1_body() atf_check -o inline:"-I${selfdir}/lib1/include/child-prefix-1 -L${selfdir}/lib1/lib64 -lchild-prefix-1\n" \ pkgconf --with-path="${selfdir}/lib1/child-prefix/pkgconfig" --define-prefix --cflags --libs child-prefix-1 } + +define_prefix_child_prefix_1_env_body() +{ + export PKG_CONFIG_PATH="${selfdir}/lib1/child-prefix/pkgconfig" + export PKG_CONFIG_RELOCATE_PATHS=1 + atf_check -o inline:"-I${selfdir}/lib1/include/child-prefix-1 -L${selfdir}/lib1/lib64 -lchild-prefix-1\n" \ + pkgconf --cflags --libs child-prefix-1 +}