forked from ariadne/pkgconf
Add tests for lib order
parent
e7c9bdb317
commit
5eb79f6651
|
@ -11,6 +11,9 @@ tests_init \
|
||||||
static_cflags \
|
static_cflags \
|
||||||
private_duplication \
|
private_duplication \
|
||||||
private_duplication_digraph \
|
private_duplication_digraph \
|
||||||
|
foo_bar \
|
||||||
|
bar_foo \
|
||||||
|
foo_metapackage_3 \
|
||||||
libs_static2 \
|
libs_static2 \
|
||||||
missing \
|
missing \
|
||||||
requires_internal \
|
requires_internal \
|
||||||
|
@ -86,6 +89,30 @@ private_duplication_digraph_body()
|
||||||
pkgconf --static --libs-only-l private-libs-duplication --digraph
|
pkgconf --static --libs-only-l private-libs-duplication --digraph
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bar_foo_body()
|
||||||
|
{
|
||||||
|
export PKG_CONFIG_PATH="${selfdir}/lib1"
|
||||||
|
atf_check \
|
||||||
|
-o inline:"-lbar -lfoo\n" \
|
||||||
|
pkgconf --static --libs-only-l bar foo
|
||||||
|
}
|
||||||
|
|
||||||
|
foo_bar_body()
|
||||||
|
{
|
||||||
|
export PKG_CONFIG_PATH="${selfdir}/lib1"
|
||||||
|
atf_check \
|
||||||
|
-o inline:"-lbar -lfoo\n" \
|
||||||
|
pkgconf --static --libs-only-l foo bar
|
||||||
|
}
|
||||||
|
|
||||||
|
foo_metapackage_3_body()
|
||||||
|
{
|
||||||
|
export PKG_CONFIG_PATH="${selfdir}/lib1"
|
||||||
|
atf_check \
|
||||||
|
-o inline:"-lbar -lfoo\n" \
|
||||||
|
pkgconf --static --libs-only-l foo metapackage-3
|
||||||
|
}
|
||||||
|
|
||||||
libs_static2_body()
|
libs_static2_body()
|
||||||
{
|
{
|
||||||
export PKG_CONFIG_PATH="${selfdir}/lib1"
|
export PKG_CONFIG_PATH="${selfdir}/lib1"
|
||||||
|
|
Loading…
Reference in New Issue