]>
git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/core/build-essentials/quality-agent/quality-agent.d/qa-include
28467338838d548409d568439d2c72abe1fe9203
3 # Include additional functions
4 .
/usr
/lib
/buildsystem-tools
/common-functions
7 [ "${NAOKI_DEBUG}" = "1" ] ||
[ "${DEBUG}" = "1" ]
14 # printf " %-7s %s\n" "${facility}" "$@"
17 function log_debug
() {
18 debug
&& log DEBUG
"$@"
21 function log_error
() {
29 function log_warning
() {
33 if [ -z "${BUILDROOT}" ]; then
34 echo "${0##*/}: ERROR: BUILDROOT is not set." >&2
39 [ -z "${FILTER}" ] && return 1
40 grep -qE ${FILTER} <<<$@
43 function print_description
() {
44 # Remove all whitespaces
45 local desc
=$
(echo ${DESC})
47 log_info
"Check: $(basename ${0})"
50 for line
in $
(fold -s -w 60 <<<${desc}); do
62 log_debug
"Running qa_find with command ${command} in ${filetype}"
65 for file in $
(find_elf_files
--prefix=${BUILDROOT} ${!filetype}); do
71 log_error
"REPLACE THIS FUNCTION BY A CUSTOM CHECK"
79 error_message
=$
(check
)
82 [ -z "${error_message}" ] && \
83 [ "${ret}" = "0" ] && return 0
87 echo "${error_message}"