diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2015-04-07 15:31:28 +0100 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2015-04-07 15:31:28 +0100 |
commit | c31441afcc11c4f6cd6dfd830ad5e49e7702c528 (patch) | |
tree | 4a4886cab825cdb74e0a27591e8ddebba3f9daf0 | |
parent | 92a902c88963302890b0c8612d7f2bf006e49fb5 (diff) |
Cherry-pick from master, and fix:
add a --check option to specify which tests to run
Conflicts:
test-backport.sh
Change-Id: I2b0362a090734bd46de4d48356a211e7189dbd98
-rwxr-xr-x | test-backport.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test-backport.sh b/test-backport.sh index 4d1f5539..ceb284f4 100755 --- a/test-backport.sh +++ b/test-backport.sh @@ -92,7 +92,7 @@ repo="gcc.git" fileserver="abe.tcwglab.linaro.org" branch="" -OPTS="`getopt -o s:r:f:w:o:t:g:h -l target:,fileserver:,help,snapshots:,repo:,workspace:,options -- "$@"`" +OPTS="`getopt -o s:r:f:w:o:t:g:h -l target:,fileserver:,help,snapshots:,repo:,workspace:,options,check: -- "$@"`" while test $# -gt 0; do case $1 in -s|--snapshots) local_snapshots=$2; shift ;; @@ -101,6 +101,7 @@ while test $# -gt 0; do -w|--workspace) user_workspace=$2; shift ;; -o|--options) user_options=$2; shift ;; -t|--target) target=$2; shift ;; + -c|--check) check=$2; shift ;; -h|--help) usage ;; *) branch=$1;; --) break ;; @@ -111,13 +112,13 @@ done if test x"${target}" != x"native" -a x"${target}" != x; then platform="--target ${target}" targetname=${target} - check="--check all" + check="--check ${check:-all}" else # For native builds, we need to know the effective target name to # be able to find the results targetname=${build} # For native builds, we don't check gdb because it is too slow - check="--check all --excludecheck gdb" + check="--check ${check:-all} --excludecheck gdb" fi if test "`echo ${branch} | grep -c gcc.git`" -gt 0; then |