| 1 | #!/bin/bash |
| 2 | |
| 3 | # Aborts on non-zero exit status |
| 4 | set -eux |
| 5 | |
| 6 | # find the multiarch lib directory |
| 7 | libdir="/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)" |
| 8 | echo "libdir: ${libdir}" |
| 9 | |
| 10 | # remove the library files built from source |
| 11 | (cd src/.libs && rm -f libnftnl.so) |
| 12 | |
| 13 | # copy the library files from the installed debian package |
| 14 | cp "${libdir}/libnftnl.so" ./src/.libs |
| 15 | |
| 16 | # Run upstream tests |
| 17 | (cd tests && make clean && make check) |