]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - gw-tests/pc.sh
Fix replotting of all graphs
[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) -h hist2.dat -f time2.dat
7     latester -d can0 -d can1 -c $COUNT $(traffic_and_length 4) -h hist4.dat -f time4.dat
8     latester -d can0 -d can1 -c $COUNT $(traffic_and_length 6) -h hist6.dat -f time6.dat
9     latester -d can0 -d can1 -c $COUNT $(traffic_and_length 8) -h hist8.dat -f time8.dat
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           "hist2.dat" with lp lt 1 title "2 byte messages", \
21           "hist4.dat" with lp lt 2 title "4 byte messages", \
22           "hist6.dat" with lp lt 3 title "6 byte messages", \
23           "hist8.dat" with lp lt 4 title "8 byte messages"
24 EOF
25 }
26     
27 test_end
28