]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/rtt.sh
Allow tests to generate more graphs
[can-benchmark.git] / tests / rtt.sh
index 73978696465e3e6c54628078ab2550335a7e8c57..898fb565810ff95d6bf3531092cc2f2399b97fe0 100755 (executable)
@@ -1,10 +1,10 @@
-#!/bin/sh
+#!/bin/bash
 
 . _lib.sh
 
 t() {
-    PID_S=`vca_canping -s 1 -b -r -d $CAN1`
-    vca_canping -m 1 -r -v -g $DRIVER -t 1 -d $CAN0 -w 2 -c 10000
+    PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
+    vca_canping -m 1 -R FF:$RTPRIO -v -e $DRIVER-times -g $DRIVER -t 1 -d $CAN0 -w 1 -n 10 -c 10000
     kill $PID_S
 }
 
@@ -20,3 +20,11 @@ plot [0:] "socketcan-1000.dat" with lp title "Socketcan",\
           "lincan-1000.dat" with lp title "Lincan"
 '
 
+PLOT_CMD[1]='
+set title "Round-trip time history (`uname -r`)"
+set logscale y
+set grid
+set xlabel "Ping number"
+set ylabel "Round-trip time [{/Symbol m}s]"
+plot "lincan-times-1000.dat" with lines, "socketcan-times-1000.dat" with lines
+'