]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/gw-nop.sh
latester update
[can-benchmark.git] / gw-tests / gw-nop.sh
index acada9166a3ed287e30830c24d85a548d8c381f2..69b328df95b273c79dc1123802f52fe9a71f47a9 100755 (executable)
@@ -2,6 +2,23 @@
 
 . lib.sh
 
+main() {
+    gw="cangw -A -s can0 -d can1"
+    sshgw $gw
+    latester -d can0 -d can1 -d can2 -o -c $COUNT -h hist.dat -f time.dat
+}
 
-
+plot_cmds() {
+    cat <<EOF
+set title "$gw"
+set logscale y
+set grid
+set xlabel "Time [{/Symbol m}s]"
+set ylabel "Latency profile [messages]"
+plot [0:1000] [1:$COUNT] \
+          "hist.dat" with lp lt 1 title ""
+EOF
+}
+    
 test_end
+