From: Martin Jansa Date: Thu, 19 Jun 2014 13:24:30 +0000 (+0200) Subject: test-dependencies.sh: Return non-zero return code when there was some failure detected X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4dcfc07f4eb0a48f5d0c7effaa35ea943869754;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git test-dependencies.sh: Return non-zero return code when there was some failure detected * this is useful when using from jenkins job where you don't want to read output just to dectect how bad it was * add .log suffix to all files, so they can be easily downloaded from http servers without default mimetype set to something useful * add recipes failed in step 1 to steps 2 and 3 to generate standalone logs for them Signed-off-by: Martin Jansa --- diff --git a/scripts/test-dependencies.sh b/scripts/test-dependencies.sh new file mode 100755 index 00000000000..e01acbecf7e --- /dev/null +++ b/scripts/test-dependencies.sh @@ -0,0 +1,286 @@ +#!/bin/bash + +# Author: Martin Jansa +# +# Copyright (c) 2013 Martin Jansa + +# Used to detect missing dependencies or automagically +# enabled dependencies which aren't explicitly enabled +# or disabled. Using bash to have PIPESTATUS variable. + +# It does 3 builds of +# 1st to populate sstate-cache directory and sysroot +# 2nd to rebuild each recipe with every possible +# dependency found in sysroot (which stays populated +# from 1st build +# 3rd to rebuild each recipe only with dependencies defined +# in DEPENDS +# 4th (optional) repeat build like 3rd to make sure that +# minimal versions of dependencies defined in DEPENDS +# is also enough + +# Global vars +tmpdir= +targets= +recipes= +buildhistory= +buildtype= +default_targets="world" +default_buildhistory="buildhistory" +default_buildtype="1 2 3 c" + +usage () { + cat << EOF +Welcome to utility to detect missing or autoenabled dependencies. +WARNING: this utility will completely remove your tmpdir (make sure + you don't have important buildhistory or persistent dir there). +$0