tests: add test for --print-variables with --env
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
parent
ca2a06898f
commit
ef99b6c626
|
@ -42,7 +42,8 @@ tests_init \
|
||||||
arbitary_path \
|
arbitary_path \
|
||||||
with_path \
|
with_path \
|
||||||
relocatable \
|
relocatable \
|
||||||
single_depth_selectors
|
single_depth_selectors \
|
||||||
|
print_variables_env
|
||||||
|
|
||||||
noargs_body()
|
noargs_body()
|
||||||
{
|
{
|
||||||
|
@ -364,3 +365,11 @@ libs_env_body()
|
||||||
-o inline:"FOO_LIBS='-L/test/lib -lfoo'\n" \
|
-o inline:"FOO_LIBS='-L/test/lib -lfoo'\n" \
|
||||||
pkgconf --with-path=${selfdir}/lib1 --libs --env=FOO foo
|
pkgconf --with-path=${selfdir}/lib1 --libs --env=FOO foo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print_variables_env_body()
|
||||||
|
{
|
||||||
|
atf_check \
|
||||||
|
-o inline:"FOO_CFLAGS='-fPIC -I/test/include/foo'\nFOO_LIBS='-L/test/lib -lfoo'\nFOO_INCLUDEDIR='/test/include'\nFOO_LIBDIR='/test/lib'\nFOO_EXEC_PREFIX='/test'\nFOO_PREFIX='/test'\nFOO_PCFILEDIR='${selfdir}/lib1'\n" \
|
||||||
|
pkgconf --with-path=${selfdir}/lib1 --env=FOO --print-variables --cflags --libs foo
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue