tests: add test for --exists-cflags with --env

master
Ariadne Conill 2024-08-05 16:43:54 -07:00
parent 22866eca45
commit d8cd27e2d2
1 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,7 @@ tests_init \
exists3 \ exists3 \
exists_version_alt \ exists_version_alt \
exists_cflags \ exists_cflags \
exists_cflags_env \
uninstalled_bad \ uninstalled_bad \
uninstalled \ uninstalled \
libs_intermediary \ libs_intermediary \
@ -348,3 +349,10 @@ exists_cflags_body()
-o inline:"-DHAVE_FOO\n" \ -o inline:"-DHAVE_FOO\n" \
pkgconf --with-path=${selfdir}/lib1 --cflags --exists-cflags --fragment-filter=D foo pkgconf --with-path=${selfdir}/lib1 --cflags --exists-cflags --fragment-filter=D foo
} }
exists_cflags_env_body()
{
atf_check \
-o inline:"FOO_CFLAGS='-DHAVE_FOO'\n" \
pkgconf --with-path=${selfdir}/lib1 --cflags --exists-cflags --fragment-filter=D --env=FOO foo
}