]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/vcan.sh
Generate monochromatic pdfs
[can-benchmark.git] / gw-tests / vcan.sh
index c87ebaf51533238fa91a54ebf2ecf4d62b8c5884..5dcb81206cce5ec37105816a0057056ee6ba047e 100755 (executable)
@@ -2,9 +2,10 @@
 
 . lib.sh
 
-numjobs=`seq 0 2 12`
+numjobs=`seq 0 2 10`
 
 main() {
+    if [ "$kvers" = 3.0.4-rt14-00008-gb2052fd -a "$load" = eth -a $traffic != oneatatime ]; then echo "Skipping eth test"; SKIPPED=1; return; fi
     sshgw 'ip link add dev vcan0 type vcan && ip link set vcan0 up'
     for i in $numjobs; do
        cleanupgw
@@ -23,7 +24,7 @@ ADDITIONAL_PLOTS=detail
 
 plot_cmds() {
     if [[ "$1" = detail ]]; then
-       range=0.1:0.4
+       range=0:0.4
        echo "set logscale y"
        echo "set mxtics "
     else
@@ -31,7 +32,7 @@ plot_cmds() {
        echo "set logscale xy"
     fi
     cat <<EOF
-set title "Chained GW jobs on a single VCAN interface"
+set title "Chained GWs on a single VCAN interface"
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
@@ -39,7 +40,7 @@ plot [$range] [1:$COUNT] \\
 EOF
     lt=2
     for i in $numjobs; do
-       echo_plot "\"hops$i-hist.txt\" with lp lt $lt title \"$((i+2)) GW jobs, 1 vcan\""
+       echo_plot "\"hops$i-hist.txt\" with lp lt $lt pt $lt title \"$((i+2)) GW jobs, 1 vcan\""
         lt=$((lt+1))
     done
 }