diff options
author | Andrew McDermott <andrew.mcdermott@linaro.org> | 2014-05-19 10:56:00 +0100 |
---|---|---|
committer | Andrew McDermott <andrew.mcdermott@linaro.org> | 2014-05-19 10:56:00 +0100 |
commit | 7bdf5ca79b283ed3969b4c48b1a8563cd76a381d (patch) | |
tree | fda5ac615add204909ea5ea13a3a22d2ddf8b7e5 | |
parent | adf3d6e93e3cb06f9dda848bb0e1f27a8b8a88aa (diff) |
Allow teragen reference files to be parameterised
Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
-rwxr-xr-x | benchmark-terasort | 4 | ||||
-rw-r--r-- | common.sh | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/benchmark-terasort b/benchmark-terasort index 1eb6b74..0105571 100755 --- a/benchmark-terasort +++ b/benchmark-terasort @@ -22,8 +22,8 @@ THIS_BENCHMARK_DIR="$(cd $(dirname "${BASH_SOURCE[0]}") && pwd -P)" source $THIS_BENCHMARK_DIR/common.sh -if [ ! -d $THIS_BENCHMARK_DIR/${NGIGABYTES}GB ]; then - echo "error: ${NGIGABYTES}GB baseline directory is missing!" +if [ ! -d $TERAGEN_BASELINE_DIR/${NGIGABYTES}GB ]; then + echo "error: ${NGIGABYTES}GB baseline file is missing!" exit 1 fi @@ -25,3 +25,4 @@ : ${USER:=$LOGNAME} : ${RESULTS_FILE=$BENCHMARK_RESULTS_DIR/results.csv} : ${RESULTS_DB=$BENCHMARK_RESULTS_DIR/results.db} +: ${TERAGEN_BASELINE_DIR:=$HOME/hadoop-terasort-reference-files} |