]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/rtt.sh
Convert plot commands to be returned by function p()
[can-benchmark.git] / tests / rtt.sh
index f0ce6673a2c28fb93a9cb28e41ce0ae1d2a1c08f..f79a06cd8bd4fcb28ba2cfa7b259308ded42fe49 100755 (executable)
@@ -10,7 +10,7 @@ t() {
 
 
 
-PLOT_CMD='
+p() { cat <<EOF
 set title "Round-trip time"
 set logscale y
 set grid
@@ -18,7 +18,8 @@ set xlabel "Time [{/Symbol m}s]"
 set ylabel "Latency profile [messages]"
 plot [0:] "socketcan-1000.dat" with lp title "Socketcan",\
               "lincan-1000.dat" with lp title "Lincan"
-'
+EOF
+}
 
 PLOT_CMD[1]='
 set title "Round-trip time history"