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

master
Ariadne Conill 2024-08-05 16:45:56 -07:00
parent d8cd27e2d2
commit c84223616a
1 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,7 @@ tests_init \
libs_cflags_version_alt \
libs_cflags_version_different \
libs_cflags_version_different_bad \
libs_env \
exists_nonexitent \
nonexitent \
exists_version \
@ -356,3 +357,10 @@ exists_cflags_env_body()
-o inline:"FOO_CFLAGS='-DHAVE_FOO'\n" \
pkgconf --with-path=${selfdir}/lib1 --cflags --exists-cflags --fragment-filter=D --env=FOO foo
}
libs_env_body()
{
atf_check \
-o inline:"FOO_LIBS='-L/test/lib -lfoo'\n" \
pkgconf --with-path=${selfdir}/lib1 --libs --env=FOO foo
}