]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - gw-tests/nop.sh
Merge branch 'master' of rtime.felk.cvut.cz:/can-benchmark
[can-benchmark.git] / gw-tests / nop.sh
1 #!/bin/bash
2
3 . lib.sh
4
5 main() {
6     sshgw cangw -A -s can0 -d can1
7     latester -d can0 -d can1 -d can2 -o -c $COUNT -l 2 -h hist2.dat -f time2.dat
8     latester -d can0 -d can1 -d can2 -o -c $COUNT -l 4 -h hist4.dat -f time4.dat
9     latester -d can0 -d can1 -d can2 -o -c $COUNT -l 6 -h hist6.dat -f time6.dat
10     latester -d can0 -d can1 -d can2 -o -c $COUNT -l 8 -h hist8.dat -f time8.dat
11 }
12
13 plot_cmds() {
14     cat <<EOF
15 set title "Single GW, no modifications, no filters"
16 set logscale y
17 set grid
18 set xlabel "Time [{/Symbol m}s]"
19 set ylabel "Latency profile [messages]"
20 plot [0:600] [1:$COUNT] \
21           "hist2.dat" with lp lt 1 title "2 byte messages", \
22           "hist4.dat" with lp lt 2 title "4 byte messages", \
23           "hist6.dat" with lp lt 3 title "6 byte messages", \
24           "hist8.dat" with lp lt 4 title "8 byte messages"
25 EOF
26 }
27     
28 test_end
29