]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - tests/rtt-w.sh
Add sleep after test with externally generated load
[can-benchmark.git] / tests / rtt-w.sh
1 #!/bin/bash
2
3 . _lib.sh
4
5 t() {
6     PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
7     vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-0 -t 1 -d $CAN0 -w 0 -n 10 -c $COUNT
8     vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-1 -t 1 -d $CAN0 -w 1 -n 10 -c $COUNT
9     vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-2 -t 1 -d $CAN0 -w 2 -n 10 -c $COUNT
10     kill $PID_S
11 }
12
13
14
15 p() { cat <<EOF
16 set title "Round-trip time depending on delay between sends"
17 set logscale y
18 set grid
19 set xlabel "Time [ms]"
20 set ylabel "Latency profile [messages]"
21 plot [0:] "socketcan-0-1000.dat" with lp lt 1 title "Socketcan 0sms",\
22           "lincan-0-1000.dat" with lp lt 2 title "Lincan 0 ms",\
23           "socketcan-1-1000.dat" with lp lt 1 title "Socketcan 1 ms",\
24           "lincan-1-1000.dat" with lp lt 2 title "Lincan 1 ms",\
25           "socketcan-2-1000.dat" with lp lt 1 title "Socketcan 2 ms",\
26           "lincan-2-1000.dat" with lp lt 2 title  "Lincan 2 ms"
27 EOF
28 }