]> git.ipfire.org Git - people/stevee/pakfire.git/blame - tools/quality-agent.d/003-libs-location
Rename scripts dir to tools.
[people/stevee/pakfire.git] / tools / quality-agent.d / 003-libs-location
CommitLineData
f165e102
MT
1#!/bin/bash
2
3. $(dirname ${0})/qa-include
4
5DESC="Checking correct installation of libraries"
6
7function check() {
8 local failed=0
9 for lib in $(find ${BUILDROOT}/lib -type f -name "lib*.so.*" 2>/dev/null); do
10 lib=${lib##*/}
11 lib=${lib%%.so*}
12
13 if [ ! -e "${BUILDROOT}/usr/lib/${lib}.so" ]; then
14 log ERROR " /usr/lib/${lib}.so is missing"
15 failed=1
16 fi
17 done
18
19 return ${failed}
20}
21
22run
23