X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/2725fec83bbe28c02ba5921f6d31432d3c3d867f..ef13bcae14794256b4b632f8e7c440a7e93ba62a:/tests/t01-simple.sh diff --git a/tests/t01-simple.sh b/tests/t01-simple.sh index 103630d..e6e92df 100755 --- a/tests/t01-simple.sh +++ b/tests/t01-simple.sh @@ -2,11 +2,19 @@ . lib.sh -load_lincan_hw +t() { + PID_S=`vca_canping -s 1 -b -r -d $CAN1` + vca_canping -m 1 -r -v -g $DRIVER -t 1 -d $CAN0 -w 5 -c 1000 + kill $PID_S +} -PID_S=`vca_canping -s 1 -b -r -d /dev/can1` +PLOT_CMD=' +set logscale y +set grid +set title "Round-trip time measurement (`uname -r`)" +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" +' -vca_canping -m 1 -r -v -t 1 -d /dev/can0 -w 5 -c 1000 - -kill $PID_S -#killall -9 vca_canping