From c84223616aba6af87f8259dbd7a9634e6b758e7a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Mon, 5 Aug 2024 16:45:56 -0700 Subject: [PATCH] tests: add test for --libs with --env --- tests/basic.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/basic.sh b/tests/basic.sh index 133ccf5..392cc04 100755 --- a/tests/basic.sh +++ b/tests/basic.sh @@ -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 +}