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.
This commit is contained in:
parent
70f2a02873
commit
1c6d2f9352
|
@ -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
|
||||
|
||||
|
|
|
@ -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.0
|
||||
librpmbuild.so.9.1.0
|
||||
librpmio.so.9.1.0
|
||||
librpmsign.so.9.1.0
|
||||
])
|
||||
AT_CLEANUP
|
||||
|
||||
# ------------------------------
|
||||
AT_SETUP([rpm --showrc])
|
||||
|
|
Loading…
Reference in New Issue