tests: add basic --exists-cflags test
ci/woodpecker/push/woodpecker Pipeline was successful Details

master
Ariadne Conill 2024-08-05 16:31:37 -07:00
parent f635f63220
commit d5cd2a4f28
1 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,7 @@ tests_init \
exists2 \
exists3 \
exists_version_alt \
exists_cflags \
uninstalled_bad \
uninstalled \
libs_intermediary \
@ -340,3 +341,10 @@ modversion_noflatten_body()
-o inline:"1.3\n" \
pkgconf --with-path=${selfdir}/lib1 --modversion bar
}
exists_cflags_body()
{
atf_check \
-o inline:"-DHAVE_FOO\n" \
pkgconf --with-path=${selfdir}/lib1 --cflags --exists-cflags --fragment-filter=D foo
}