]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - tests/rtt-virtual.sh
Attempt to kill remote pings in a more reliable way
[can-benchmark.git] / tests / rtt-virtual.sh
1 #!/bin/bash
2
3 . _lib.sh
4
5 t() {
6     PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN0`
7     vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 0 -c $COUNT
8     kill $PID_S
9 }
10
11 TESTS="lincan_virtual socketcan_virtual"
12
13 p() { cat <<EOF
14 set title "Round-trip time - virtual CAN"
15 set logscale y
16 set grid
17 set xlabel "Time [ms]"
18 set ylabel "Latency profile [messages]"
19 plot [0:] "socketcan-virtual-1000.dat" with lp title "Socketcan",\
20           "lincan-virtual-1000.dat" with lp title "Lincan"
21 EOF
22 }