tests: add test for --exists-cflags with --env
parent
22866eca45
commit
d8cd27e2d2
|
@ -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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue