mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
support/test-pkg: run legal-info
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
92b10f63c5
commit
37308b979a
@ -93,9 +93,9 @@ $ ./support/scripts/test-pkg -c libcurl.config -p libcurl
|
|||||||
br-arm-cortex-a9-musl [ 7/11]: FAILED
|
br-arm-cortex-a9-musl [ 7/11]: FAILED
|
||||||
br-arm-cortex-m4-full [ 8/11]: OK
|
br-arm-cortex-m4-full [ 8/11]: OK
|
||||||
br-arm-full [ 9/11]: OK
|
br-arm-full [ 9/11]: OK
|
||||||
br-arm-full-nothread [10/11]: OK
|
br-arm-full-nothread [10/11]: FAILED
|
||||||
br-arm-full-static [11/11]: OK
|
br-arm-full-static [11/11]: OK
|
||||||
11 builds, 2 skipped, 2 failed
|
11 builds, 2 skipped, 2 build failed, 1 legal-info failed
|
||||||
----
|
----
|
||||||
|
|
||||||
The results mean:
|
The results mean:
|
||||||
@ -111,6 +111,7 @@ The results mean:
|
|||||||
* `FAILED`: the build failed. Inspect the +logfile+ file in the output
|
* `FAILED`: the build failed. Inspect the +logfile+ file in the output
|
||||||
build directory to see what went wrong:
|
build directory to see what went wrong:
|
||||||
** the actual build failed,
|
** the actual build failed,
|
||||||
|
** the legal-info failed,
|
||||||
** one of the preliminary steps (downloading the config file, applying
|
** one of the preliminary steps (downloading the config file, applying
|
||||||
the configuration, running `dirclean` for the package) failed.
|
the configuration, running `dirclean` for the package) failed.
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ TOOLCHAINS_URL='http://autobuild.buildroot.org/toolchains/configs/toolchain-conf
|
|||||||
main() {
|
main() {
|
||||||
local o O opts
|
local o O opts
|
||||||
local cfg dir pkg random toolchain
|
local cfg dir pkg random toolchain
|
||||||
local ret nb nb_skip nb_fail nb_tc build_dir
|
local ret nb nb_skip nb_fail nb_legal nb_tc build_dir
|
||||||
local -a toolchains
|
local -a toolchains
|
||||||
|
|
||||||
o='hc:d:p:r:'
|
o='hc:d:p:r:'
|
||||||
@ -68,6 +68,7 @@ main() {
|
|||||||
nb=0
|
nb=0
|
||||||
nb_skip=0
|
nb_skip=0
|
||||||
nb_fail=0
|
nb_fail=0
|
||||||
|
nb_legal=0
|
||||||
for toolchainconfig in "${toolchains[@]}"; do
|
for toolchainconfig in "${toolchains[@]}"; do
|
||||||
: $((nb++))
|
: $((nb++))
|
||||||
# Using basename(1) on a URL works nicely
|
# Using basename(1) on a URL works nicely
|
||||||
@ -79,10 +80,12 @@ main() {
|
|||||||
(0) printf "OK\n";;
|
(0) printf "OK\n";;
|
||||||
(1) : $((nb_skip++)); printf "SKIPPED\n";;
|
(1) : $((nb_skip++)); printf "SKIPPED\n";;
|
||||||
(2) : $((nb_fail++)); printf "FAILED\n";;
|
(2) : $((nb_fail++)); printf "FAILED\n";;
|
||||||
|
(3) : $((nb_legal++)); printf "FAILED\n";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "%d builds, %d skipped, %d failed\n" ${nb} ${nb_skip} ${nb_fail}
|
printf "%d builds, %d skipped, %d build failed, %d legal-info failed\n" \
|
||||||
|
${nb} ${nb_skip} ${nb_fail} ${nb_legal}
|
||||||
}
|
}
|
||||||
|
|
||||||
build_one() {
|
build_one() {
|
||||||
@ -131,6 +134,14 @@ build_one() {
|
|||||||
if ! make O="${dir}" ${pkg} >> "${dir}/logfile" 2>&1; then
|
if ! make O="${dir}" ${pkg} >> "${dir}/logfile" 2>&1; then
|
||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# legal-info done systematically, because some packages have different
|
||||||
|
# sources depending on the configuration (e.g. lua-5.2 vs. lua-5.3)
|
||||||
|
if [ -n "${pkg}" ]; then
|
||||||
|
if ! make O="${dir}" "${pkg}-legal-info" >> "${dir}/logfile" 2>&1; then
|
||||||
|
return 3
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user