Add tests for lib order

Kai Pastor 2024-02-08 21:37:35 +01:00 committed by Ariadne Conill
parent e7c9bdb317
commit 5eb79f6651
1 changed files with 27 additions and 0 deletions

View File

@ -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"