This is an automated email from the git hooks/post-receive script.
bernie.ogden pushed a commit to branch bernie/benchmarking in repository toolchain/abe.
commit fca1335757fd73d183f3ba6fa988d502e113fbe9 Author: Bernard Ogden bernie.ogden@linaro.org Date: Fri Jul 31 12:23:46 2015 +0200
Permit benchmarking with prebuilt benchmark
Benchmark must be delivered as a tarball that just unpacks into expected abe location.
Change-Id: Ia045f7522acb80d9389e963e525b456504efec09 --- config/bench/lava/host-session | 5 +++++ config/bench/lava/host-session.yaml | 1 + scripts/Benchmark.job | 10 ++++++++-- 3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/config/bench/lava/host-session b/config/bench/lava/host-session index ad99b6e..6a65074 100755 --- a/config/bench/lava/host-session +++ b/config/bench/lava/host-session @@ -37,6 +37,11 @@ if test x"$5" = xNone; then else export compiler_flags="$5" fi +if test x"$6" = xNone; then + export prebuilt= +else + export prebuilt="$6" +fi
#Non-parameters that we need to pass to Benchmark.job export ABE_DIR diff --git a/config/bench/lava/host-session.yaml b/config/bench/lava/host-session.yaml index b4ada28..5cb2b53 100644 --- a/config/bench/lava/host-session.yaml +++ b/config/bench/lava/host-session.yaml @@ -10,6 +10,7 @@ params: TOOLCHAIN: https://releases.linaro.org/14.11/components/toolchain/binaries/arm [...] RUN_FLAGS: None COMPILER_FLAGS: None + PREBUILT: None BENCH_DEBUG: None
install: diff --git a/scripts/Benchmark.job b/scripts/Benchmark.job index 17158e2..744bc8c 100755 --- a/scripts/Benchmark.job +++ b/scripts/Benchmark.job @@ -62,8 +62,14 @@ if test x"${benchgccpath}" != x; then fi
#Build -echo "${ABE_DIR}"/scripts/benchmark.sh -s buildonly ${compiler_flags:+-f "${compi [...] - "${ABE_DIR}"/scripts/benchmark.sh -s buildonly ${compiler_flags:+-f "${compi [...] +if test x"${prebuilt:-}" = x; then + echo "${ABE_DIR}"/scripts/benchmark.sh -s buildonly ${compiler_flags:+-f "${com [...] + "${ABE_DIR}"/scripts/benchmark.sh -s buildonly ${compiler_flags:+-f "${com [...] +else + #TODO: Store tarball in a tmpdir + tar xf "${prebuilt#*:}" + rm "${prebuilt#*:}" +fi
#Post-build command ${post_build_cmd:-}