From f941d0c1775b934ae852c3024ff5f5de84247d18 Mon Sep 17 00:00:00 2001 From: Alexandre Rames Date: Thu, 27 Aug 2015 11:32:00 +0100 Subject: Remove the filter option from the build script. The benchmarks to run can be filtered with the `run.py` script or via the java app itself. This allows to simplify the build system. One can stil build an app without specific benchmarks by simply deleting the benchmark files. Change-Id: Ie81bcd795796baf4e7920faf9c46b67cf0fc6887 --- benchmarking/java-ubenchs/build.sh | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/benchmarking/java-ubenchs/build.sh b/benchmarking/java-ubenchs/build.sh index 829488e..783a035 100755 --- a/benchmarking/java-ubenchs/build.sh +++ b/benchmarking/java-ubenchs/build.sh @@ -70,7 +70,7 @@ verbose_safe() { # Arguments handling -usage="Usage: $(basename "$0") [FILTER...] +usage="Usage: $(basename "$0") Build Java benchmark class, APK, and jar files. Output files are produced in $DIR_BUILD. @@ -112,18 +112,9 @@ RDIR_FRAMEWORK=$RDIR_BENCHMARKS/org/linaro/bench JAVA_BENCHMARK_FILES= FIND_BENCHMARKS_COMMAND="find $RDIR_BENCHMARKS ! -path $RDIR_FRAMEWORK/* -type f" +# Disable wildcard expansion. set -f -if [ $# -eq 0 ]; then - # No filters have been provided, so compile all benchmarks. - JAVA_BENCHMARK_FILES+="$($FIND_BENCHMARKS_COMMAND -name '*'.java) " -else - # Find benchmarks matching the provided filters. - FILTERS=("$@") - # Disable globbing for the `find` commands. - for filter in "${FILTERS[@]}"; do - JAVA_BENCHMARK_FILES+="$($FIND_BENCHMARKS_COMMAND -name $filter) " - done -fi +JAVA_BENCHMARK_FILES+="$($FIND_BENCHMARKS_COMMAND -name '*'.java) " set +f # Transform the list of java files in a list of strings that will be provided to -- cgit v1.2.3