X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/080e1f7dda7c321b0272750d97d614c2c968602a..18b079e64d91a8e6f04c717ab2b32a30d08b70a9:/tests/_lib.sh diff --git a/tests/_lib.sh b/tests/_lib.sh index 557602f..281ddf9 100644 --- a/tests/_lib.sh +++ b/tests/_lib.sh @@ -79,13 +79,14 @@ 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() {