tests: add a test for --static ordering bug reported to freedesktop pkg-config that was actually in pkgconf

This was fixed a long time ago, but for completeness sake.

(https://bugs.freedesktop.org/show_bug.cgi?id=85085)
feature/tap-sh
William Pitcock 2016-12-30 19:44:50 -06:00
parent 951a844c94
commit e6df379f32
1 changed files with 9 additions and 0 deletions

View File

@ -28,6 +28,7 @@ tests_init \
libs_circular2 \
libs_circular_directpc \
libs_static \
libs_static_ordering \
pkg_config_path \
nolibs \
nocflags \
@ -235,6 +236,14 @@ libs_static_body()
pkgconf --libs static-archive-libs
}
libs_static_ordering_body()
{
export PKG_CONFIG_PATH="${selfdir}/lib1"
atf_check \
-o inline:"-L/test/lib -lbar -lfoo \n" \
pkgconf --libs foo bar
}
pkg_config_path_body()
{
export PKG_CONFIG_PATH="${selfdir}/lib1${PATH_SEP}${selfdir}/lib2"