From eb087a6c84b779a138deb1da6ea9e34ae702c0ce Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Mon, 9 Oct 2023 08:41:47 +0200 Subject: [PATCH] Test simple metapackage --- tests/basic.sh | 9 +++++++++ tests/lib1/metapackage-3.pc | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 tests/lib1/metapackage-3.pc diff --git a/tests/basic.sh b/tests/basic.sh index ba5ce22..9c16c97 100755 --- a/tests/basic.sh +++ b/tests/basic.sh @@ -29,6 +29,7 @@ tests_init \ libs_circular_directpc \ libs_static \ libs_static_ordering \ + libs_metapackage \ license_isc \ license_noassertion \ modversion_noflatten \ @@ -250,6 +251,14 @@ libs_static_ordering_body() pkgconf --libs foo bar } +libs_metapackage_body() +{ + export PKG_CONFIG_PATH="${selfdir}/lib1" + atf_check \ + -o inline:"-L/test/lib -lbar -lfoo\n" \ + pkgconf --static --libs metapackage-3 +} + pkg_config_path_body() { export PKG_CONFIG_PATH="${selfdir}/lib1${PATH_SEP}${selfdir}/lib2" diff --git a/tests/lib1/metapackage-3.pc b/tests/lib1/metapackage-3.pc new file mode 100644 index 0000000..111954a --- /dev/null +++ b/tests/lib1/metapackage-3.pc @@ -0,0 +1,4 @@ +Name: metapackage-3 +Version: 0.1 +Description: metapackage for testing purposes +Requires.private: bar