From eb7c2385d0059e862fb9da0966b5d39a616e076e Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 6 Aug 2024 10:43:52 -0700 Subject: [PATCH] tests: add test for --variable with --env --- tests/basic.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/basic.sh b/tests/basic.sh index b7cadf5..a6c26ca 100755 --- a/tests/basic.sh +++ b/tests/basic.sh @@ -43,7 +43,8 @@ tests_init \ with_path \ relocatable \ single_depth_selectors \ - print_variables_env + print_variables_env \ + variable_env noargs_body() { @@ -373,3 +374,10 @@ print_variables_env_body() pkgconf --with-path=${selfdir}/lib1 --env=FOO --print-variables --cflags --libs foo } + +variable_env_body() +{ + atf_check \ + -o inline:"FOO_INCLUDEDIR='/test/include'\n" \ + pkgconf --with-path=${selfdir}/lib1 --env=FOO --variable=includedir foo +}