This is an automated email from the git hooks/post-receive script.
bernie.ogden pushed a commit to branch bernie/benchmarking-agents in repository toolchain/abe.
commit 4ba8068bed0df9c8f348062b62f83dd6613437ee Author: Bernard Ogden bernie.ogden@linaro.org Date: Thu Jul 30 18:42:30 2015 +0200
Let benchmark.sh skip run as well as build
Change-Id: I2b91e42101c6c005d9f5a8cc9ae412098627ce7f --- scripts/benchmark.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/scripts/benchmark.sh b/scripts/benchmark.sh index 0585021..7f9aaaf 100755 --- a/scripts/benchmark.sh +++ b/scripts/benchmark.sh @@ -83,7 +83,7 @@ fi tag="" compiler_flags="" run_benchargs="" -skip_build= +phases="both" benchmark_gcc_path= cautious='-c' keep= #'-p' (polite) - clean up and release target even if there is an error @@ -91,7 +91,7 @@ keep= #'-p' (polite) - clean up and release target even if there [...] #'-k' (keep) - unconditionally keep target-side data and target target= post_target_cmd= -while getopts a:b:ce:f:g:hi:kps flag; do +while getopts a:b:ce:f:g:hi:kps: flag; do case "${flag}" in a) run_benchargs="${OPTARG}";; b) benchmark="${OPTARG}";; @@ -125,7 +125,14 @@ while getopts a:b:ce:f:g:hi:kps flag; do keep='-p' echo 'Unconditional release (-p) set: data will be scrubbed and target rele [...] ;; - s) skip_build=1;; + s) + phases="${OPTARG}" + if test x"${phases}" != xrunonly && test x"${phases}" != xbuildonly && test [...] + echo "-s takes 'runonly', 'buildonly' or 'both'" 1>&2 + error=1 + exit + fi + ;; *) echo "Bad arg" 1>&2 error=1 @@ -173,7 +180,7 @@ else #cross-build, implies we need remote devices fi fi
-if test x"${skip_build:-}" = x; then +if test x"${phases}" != xrunonly; then #abe can build the benchmarks just fine (PATH="`dirname ${benchmark_gcc_path}`":${PATH} COMPILER_FLAGS=${compiler_flags} [...] if test $? -ne 0; then @@ -182,6 +189,10 @@ if test x"${skip_build:-}" = x; then exit fi fi +if test x"${phases}" = xbuildonly; then + error=0 + exit +fi
builddir="`. ${abe_top}/host.conf && . ${topdir}/lib/common.sh && if test x"${benc [...] if test $? -ne 0; then