summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2014-05-19 10:56:00 +0100
committerAndrew McDermott <andrew.mcdermott@linaro.org>2014-05-19 10:56:00 +0100
commit7bdf5ca79b283ed3969b4c48b1a8563cd76a381d (patch)
treefda5ac615add204909ea5ea13a3a22d2ddf8b7e5
parentadf3d6e93e3cb06f9dda848bb0e1f27a8b8a88aa (diff)
Allow teragen reference files to be parameterised
Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
-rwxr-xr-xbenchmark-terasort4
-rw-r--r--common.sh1
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
diff --git a/common.sh b/common.sh
index 99dfd88..a6fa7ae 100644
--- a/common.sh
+++ b/common.sh
@@ -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}