diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2015-04-06 23:01:31 +0100 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2015-04-07 15:17:33 +0100 |
commit | 95faa2b6312f66799412d1edd5b117f768c09155 (patch) | |
tree | c59a885f5c26f1c7770ecee9f698b7d1ea42d86a /jenkins.sh | |
parent | f07467cab72c9ef1a8b9fb657378bbbe786df712 (diff) |
Handle excludecheck flag from Jenkins.
The 'excludecheck' Jenkins flag is propagated to:
- jenkins.sh/BuildFarm.job
- test-backport.sh/Backport.job
Support --check flag for native builds too.
This patch does not fix the fact that jenkins.sh does not yet support --check, unlike test-backport.sh.
Conflicts:
test-backport.sh
Change-Id: I786edca0fdcec66e95e4097469888a8b0c731c79
Diffstat (limited to 'jenkins.sh')
-rwxr-xr-x | jenkins.sh | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -72,7 +72,10 @@ user_options="" # Return status status=0 -OPTS="`getopt -o s:g:c:w:o:f:l:rt:b:h -l snapshots:,gitrepo:,abe:,workspace:,options:,fileserver:,languages:,runtests,target:,bootstrap,help -- "$@"`" +# Whether to exclude some component from 'make check' +excludecheck= + +OPTS="`getopt -o s:g:c:w:o:f:l:rt:b:h -l snapshots:,gitrepo:,abe:,workspace:,options:,fileserver:,languages:,runtests,target:,bootstrap,help,excludecheck: -- "$@"`" while test $# -gt 0; do case $1 in -s|--snapshots) user_snapshots=$2; shift ;; @@ -85,6 +88,7 @@ while test $# -gt 0; do -l|--languages) languages=$2; shift ;; -r|--runtests) runtests="true" ;; -b|--bootstrap) try_bootstrap="true" ;; + --excludecheck) excludecheck=$2; shift ;; -h|--help) usage ;; esac shift @@ -141,15 +145,11 @@ fi # if runtests is true, then run make check after the build completes if test x"${runtests}" = xtrue; then check="--check all" + check="${check}${excludecheck:+ --excludecheck ${excludecheck}}" fi if test x"${target}" != x"native" -a x"${target}" != x; then platform="--target ${target}" -else - # For native builds, we don't check gdb because it is too slow - if test x"${runtests}" = xtrue; then - check="${check} --excludecheck gdb" - fi fi if test x"${libc}" != x; then |