riak_test/priv/reporting/report.sh
Christopher Meiklejohn 04e4fa6f76 Checkpoint.
2014-07-12 13:02:15 -04:00

16 lines
358 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 ../../priv/reporting/riak-digest.escript)
fi
D1=`basename "$1"`
#generate our comparison graph
gnuplot -e "dir1=\"$1\"; outfilename=\"${D1}-report.png\";" priv/reporting/summarize1.gpl