]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/rtt.sh
Other test added
[can-benchmark.git] / tests / rtt.sh
diff --git a/tests/rtt.sh b/tests/rtt.sh
new file mode 100755 (executable)
index 0000000..7397869
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+. _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
+    kill $PID_S
+}
+
+
+
+PLOT_CMD='
+set title "Round-trip time (`uname -r`)"
+set logscale y
+set grid
+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"
+'
+