From 5eb79f6651f439fcce964cdd30fe3403c132f316 Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Thu, 8 Feb 2024 21:37:35 +0100 Subject: [PATCH] Add tests for lib order --- tests/requires.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tests/requires.sh b/tests/requires.sh index 5a307f0..6a83796 100755 --- a/tests/requires.sh +++ b/tests/requires.sh @@ -11,6 +11,9 @@ tests_init \ static_cflags \ private_duplication \ private_duplication_digraph \ + foo_bar \ + bar_foo \ + foo_metapackage_3 \ libs_static2 \ missing \ requires_internal \ @@ -86,6 +89,30 @@ private_duplication_digraph_body() 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() { export PKG_CONFIG_PATH="${selfdir}/lib1"