1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/bin/sh
set -e
exec 2>&1
# First: Run tests with libssh2.so installed from the package
./configure --disable-docker-tests
make
rm -f src/.libs/libssh2.so*
ln -s /usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH)/libssh2.so src/.libs/
ln -s /usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH)/libssh2.so.? src/.libs/
ln -s /usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH)/libssh2.so.?.?.? src/.libs/
make check
# Second: Check that 'pkg-config --libs libssh2' does not return private libs
if [ $(pkg-config --libs libssh2) != "-lssh2" ]; then
false
fi
|