riak_test/priv/reporting/report-2i.sh
Evan Vigil-McClanahan f875fb4fab changes for 2i
2014-06-06 19:59:33 -04:00

16 lines
346 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ ! -d "$1/" ]; then
echo "a directory must be specified"
exit 1
fi
if [ "x$2" == "xtrue" ]; then
(cd $1; rm -f *-digest; escript ~/bin/riak-digest.escript)
fi
D1=`basename "$1"`
#generate our comparison graph
gnuplot -e "dir1=\"$1\"; outfilename=\"${D1}-report.png\";" priv/reporting/summarize2i.gpl