diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2020-12-16 14:54:45 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2021-03-22 12:04:27 +0200 |
commit | ea2ae5e908f3a1efb09ecde487184a38e1602211 (patch) | |
tree | a0ae561f3e3090744d861f50b954853112237b11 | |
parent | 278883a704ea36c97974d0f2d65d41abe78b0e2a (diff) | |
download | rpm-ea2ae5e908f3a1efb09ecde487184a38e1602211.tar.gz |
Add test for libtool versioning sanity
Test that the shared objects created during compilation matches the
expectations of the person bumping the libtool version, which is oh
so easy to get wrong. This of course needs to be skipped for static builds.
(cherry picked from commit 1c6d2f9352537fe391237e292566224ca7d22515)
-rw-r--r-- | tests/atlocal.in | 4 | ||||
-rw-r--r-- | tests/rpmgeneral.at | 15 |
2 files changed, 18 insertions, 1 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in index 85905e71e..7d1deb8e7 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -1,5 +1,7 @@ -LD_LIBRARY_PATH="${abs_builddir}/testing@usrlibdir@" +RPMLIBDIR="@usrlibdir@" +LD_LIBRARY_PATH="${abs_builddir}/testing/${RPMLIBDIR}" export LD_LIBRARY_PATH +export RPMLIBDIR PATH="${abs_builddir}/testing@rpmbindir@:${abs_builddir}/testing@usrbindir@:${abs_builddir}/testing@usrlibexecdir@:$PATH" export PATH diff --git a/tests/rpmgeneral.at b/tests/rpmgeneral.at index 1b7ca452a..9159db7d1 100644 --- a/tests/rpmgeneral.at +++ b/tests/rpmgeneral.at @@ -35,6 +35,21 @@ AT_CHECK([runroot rpmbuild --version],[0], ]) AT_CLEANUP +# Check that libtool versioning matches expectations, it's easy to screw up. +AT_SETUP([rpm library version]) +AT_KEYWORDS([basic]) +AT_SKIP_IF(test -f "${RPMTEST}/${RPMLIBDIR}/librpm.a") +AT_CHECK([ +cd ${RPMTEST}/${RPMLIBDIR} +ls lib*.so.*.* +], +[0], +[librpm.so.9.1.2 +librpmbuild.so.9.1.2 +librpmio.so.9.1.2 +librpmsign.so.9.1.2 +]) +AT_CLEANUP # ------------------------------ AT_SETUP([rpm --showrc]) |