tests: add test for --variable with --env
ci/woodpecker/push/woodpecker Pipeline was successful Details

master
Ariadne Conill 2024-08-06 10:43:52 -07:00
parent 0ca4e5d00c
commit eb7c2385d0
1 changed files with 9 additions and 1 deletions

View File

@ -43,7 +43,8 @@ tests_init \
with_path \ with_path \
relocatable \ relocatable \
single_depth_selectors \ single_depth_selectors \
print_variables_env print_variables_env \
variable_env
noargs_body() noargs_body()
{ {
@ -373,3 +374,10 @@ print_variables_env_body()
pkgconf --with-path=${selfdir}/lib1 --env=FOO --print-variables --cflags --libs foo 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
}