]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - tests/t01-simple.sh
Test infrastructure almost ready
[can-benchmark.git] / tests / t01-simple.sh
1 #!/bin/sh
2
3 . lib.sh
4
5 t() {
6     PID_S=`vca_canping -s 1 -b -r -d $CAN1`
7     vca_canping -m 1 -r -v -g $DRIVER -t 1 -d $CAN0 -w 5 -c 1000
8     kill $PID_S
9 }
10
11 PLOT_CMD='
12 set logscale y
13 set grid
14 set title "Round-trip time measurement (`uname -r`)"
15 set xlabel "Time [{/Symbol m}s]"
16 set ylabel "Latency profile [messages]"
17 plot [0:] "socketcan-1000.dat" with lp title "Socketcan",\
18           "lincan-1000.dat" with lp title "Lincan"
19 '
20