]> git.ipfire.org Git - pakfire.git/blob - tools/quality-agent.d/050-canary
Cleanup database and add indexes.
[pakfire.git] / tools / quality-agent.d / 050-canary
1 #!/bin/bash
2
3 . $(dirname ${0})/qa-include
4
5 DESC="Every binary file has to provide a canary."
6
7 function check() {
8 local failed=0
9
10 local file
11 for file in $(find_elf_files --prefix=${BUILDROOT} ${BINARY_PATHS}); do
12 if filter_startfiles ${file}; then
13 continue
14 fi
15
16 if ! file_has_canary ${file}; then
17 log_warning " Has no canary: ${file}"
18 failed=1
19 fi
20 done
21
22 # This is currently disabled and will only return a warning !
23 failed=0
24
25 return ${failed}
26 }
27
28 run