X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/0bc8ed36a5474d06fc7da79259a33eb14560197c..18b079e64d91a8e6f04c717ab2b32a30d08b70a9:/tests/_lib.sh diff --git a/tests/_lib.sh b/tests/_lib.sh index 4dbbc40..281ddf9 100644 --- a/tests/_lib.sh +++ b/tests/_lib.sh @@ -6,7 +6,7 @@ while [ $# -gt 0 ]; do esac done -set -x +#set -x set -e PATH=$PWD/../_compiled/bin/:$PATH @@ -79,17 +79,19 @@ run_tests() { } plot() { - if [ -n "$PLOT_CMD" ]; then - echo "set terminal postscript color eps enhanced; - $PLOT_CMD" | gnuplot | epstopdf --filter > `basename $0 .sh`.pdf + for i in "${!PLOT_CMD[@]}"; do if [ -z "$OPT_PDF_ONLY" ]; then - echo "set terminal x11 enhanced; $PLOT_CMD" | gnuplot -persist + echo "set terminal x11 enhanced; ${PLOT_CMD[$i]}" | gnuplot -persist fi - fi + I=${i/0/} + echo "set terminal postscript color eps enhanced; + ${PLOT_CMD[$i]}" | gnuplot | epstopdf --filter > `basename $0 .sh`$I.pdf + done } go() { d=results/`basename $0 .sh`/`uname -r` + set -x mkdir -p $d cd $d