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