From dbd78db67ff97552dcec907570410a51e93f2f77 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 16 Aug 2022 19:42:13 +0000 Subject: [PATCH] tests: add regression test for github #259 --- tests/regress.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/regress.sh b/tests/regress.sh index 29295aa..3017beb 100755 --- a/tests/regress.sh +++ b/tests/regress.sh @@ -8,6 +8,7 @@ tests_init \ depgraph_break_2 \ depgraph_break_3 \ define_variable \ + define_variable_override \ variable \ keep_system_libs \ libs \ @@ -72,6 +73,13 @@ define_variable_body() pkgconf --variable=typelibdir --define-variable='libdir=\${libdir}' typelibdir } +define_variable_override_body() +{ + export PKG_CONFIG_PATH="${selfdir}/lib1" + atf_check -o inline:"/test\n" \ + pkgconf --variable=prefix --define-variable='prefix=/test' typelibdir +} + variable_body() { export PKG_CONFIG_PATH="${selfdir}/lib1"