summaryrefslogtreecommitdiffstats
path: root/support/scripts
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2017-04-07 13:16:17 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-04-17 15:54:33 +0200
commit37308b979af0037ea7f3c8cd0c0f1e12f1ffe52a (patch)
tree7db98956a14679d29073040dfc49fac89bd12f5c /support/scripts
parent92b10f63c57647488be7fb530afb543bb736ac66 (diff)
downloadbuildroot-37308b979af0037ea7f3c8cd0c0f1e12f1ffe52a.tar.gz
buildroot-37308b979af0037ea7f3c8cd0c0f1e12f1ffe52a.zip
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>
Diffstat (limited to 'support/scripts')
-rwxr-xr-xsupport/scripts/test-pkg15
1 files changed, 13 insertions, 2 deletions
diff --git a/support/scripts/test-pkg b/support/scripts/test-pkg
index 7a0639f901..f08c608727 100755
--- a/support/scripts/test-pkg
+++ b/support/scripts/test-pkg
@@ -6,7 +6,7 @@ TOOLCHAINS_URL='http://autobuild.buildroot.org/toolchains/configs/toolchain-conf
main() {
local o O opts
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
o='hc:d:p:r:'
@@ -68,6 +68,7 @@ main() {
nb=0
nb_skip=0
nb_fail=0
+ nb_legal=0
for toolchainconfig in "${toolchains[@]}"; do
: $((nb++))
# Using basename(1) on a URL works nicely
@@ -79,10 +80,12 @@ main() {
(0) printf "OK\n";;
(1) : $((nb_skip++)); printf "SKIPPED\n";;
(2) : $((nb_fail++)); printf "FAILED\n";;
+ (3) : $((nb_legal++)); printf "FAILED\n";;
esac
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() {
@@ -131,6 +134,14 @@ build_one() {
if ! make O="${dir}" ${pkg} >> "${dir}/logfile" 2>&1; then
return 2
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() {
OpenPOWER on IntegriCloud