]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/t01-simple.sh
Test infrastructure almost ready
[can-benchmark.git] / tests / t01-simple.sh
index 103630d3ca77a5a9207dd74e5741cdf8f687da3e..e6e92df8f2e768be705cedc256ac2ccd914b510e 100755 (executable)
@@ -2,11 +2,19 @@
 
 . lib.sh
 
 
 . lib.sh
 
-load_lincan_hw
+t() {
+    PID_S=`vca_canping -s 1 -b -r -d $CAN1`
+    vca_canping -m 1 -r -v -g $DRIVER -t 1 -d $CAN0 -w 5 -c 1000
+    kill $PID_S
+}
 
 
-PID_S=`vca_canping -s 1 -b -r -d /dev/can1`
+PLOT_CMD='
+set logscale y
+set grid
+set title "Round-trip time measurement (`uname -r`)"
+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"
+'
 
 
-vca_canping -m 1 -r -v -t 1 -d /dev/can0 -w 5 -c 1000
-
-kill $PID_S
-#killall -9 vca_canping