]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - gw-tests/pc.sh
run master ssh indefinitely
[can-benchmark.git] / gw-tests / pc.sh
1 #!/bin/bash
2
3 . lib.sh
4
5 main() {
6     latester -d can0 -d can1 -c $COUNT $(traffic_and_length 2) -n len2
7     latester -d can0 -d can1 -c $COUNT $(traffic_and_length 4) -n len4
8     latester -d can0 -d can1 -c $COUNT $(traffic_and_length 6) -n len6
9     latester -d can0 -d can1 -c $COUNT $(traffic_and_length 8) -n len8
10 }
11
12 plot_cmds() {
13     cat <<EOF
14 set title "No GW, two interfaces in PC"
15 set logscale y
16 set grid
17 set xlabel "Time [{/Symbol m}s]"
18 set ylabel "Latency profile [messages]"
19 plot [0:600] [1:$COUNT] \
20           "len2-hist.txt" with lp lt 1 title "2 byte messages", \
21           "len4-hist.txt" with lp lt 2 title "4 byte messages", \
22           "len6-hist.txt" with lp lt 3 title "6 byte messages", \
23           "len8-hist.txt" with lp lt 4 title "8 byte messages"
24 EOF
25 }
26     
27 test_end
28