mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
support/test-pkg: be less verbose
Requested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
aeabb58dc5
commit
c3c69c4dbb
@ -83,9 +83,8 @@ build_one() {
|
|||||||
dir="${dir}/${toolchain}"
|
dir="${dir}/${toolchain}"
|
||||||
mkdir -p "${dir}"
|
mkdir -p "${dir}"
|
||||||
|
|
||||||
printf "download config"
|
|
||||||
if ! curl -s "${url}" >"${dir}/.config"; then
|
if ! curl -s "${url}" >"${dir}/.config"; then
|
||||||
printf ": FAILED\n"
|
printf "FAILED\n"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -97,9 +96,8 @@ build_one() {
|
|||||||
_EOF_
|
_EOF_
|
||||||
cat "${cfg}" >>"${dir}/.config"
|
cat "${cfg}" >>"${dir}/.config"
|
||||||
|
|
||||||
printf ", olddefconfig"
|
|
||||||
if ! make O="${dir}" olddefconfig >/dev/null 2>&1; then
|
if ! make O="${dir}" olddefconfig >/dev/null 2>&1; then
|
||||||
printf ": FAILED\n"
|
printf "FAILED\n"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
# We want all the options from the snippet to be present as-is (set
|
# We want all the options from the snippet to be present as-is (set
|
||||||
@ -110,28 +108,26 @@ build_one() {
|
|||||||
# done in the same locale.
|
# done in the same locale.
|
||||||
comm -23 <(sort "${cfg}") <(sort "${dir}/.config") >"${dir}/missing.config"
|
comm -23 <(sort "${cfg}") <(sort "${dir}/.config") >"${dir}/missing.config"
|
||||||
if [ -s "${dir}/missing.config" ]; then
|
if [ -s "${dir}/missing.config" ]; then
|
||||||
printf ", SKIPPED\n"
|
printf "SKIPPED\n"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
# Remove file, it's empty anyway.
|
# Remove file, it's empty anyway.
|
||||||
rm -f "${dir}/missing.config"
|
rm -f "${dir}/missing.config"
|
||||||
|
|
||||||
if [ -n "${pkg}" ]; then
|
if [ -n "${pkg}" ]; then
|
||||||
printf ", dirclean"
|
|
||||||
if ! make O="${dir}" "${pkg}-dirclean" >> "${dir}/logfile" 2>&1; then
|
if ! make O="${dir}" "${pkg}-dirclean" >> "${dir}/logfile" 2>&1; then
|
||||||
printf ": FAILED\n"
|
printf "FAILED\n"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf ", build"
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
if ! make O="${dir}" ${pkg} >> "${dir}/logfile" 2>&1; then
|
if ! make O="${dir}" ${pkg} >> "${dir}/logfile" 2>&1; then
|
||||||
printf ": FAILED\n"
|
printf "FAILED\n"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf ": OK\n"
|
printf "OK\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user