]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Minor fixes
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 27 Aug 2009 13:57:26 +0000 (15:57 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 27 Aug 2009 13:57:26 +0000 (15:57 +0200)
tests/_lib.sh
tests/rtt.sh

index 16618148f00504c48bd24e62fe0b041d29e69fdc..632702607812944d117a66078d82d59e06111109 100644 (file)
@@ -11,8 +11,8 @@ set -e
 
 PATH=$PWD/../_compiled/bin/:$PATH
 
-RTPRIO=60
-COUNT=10000
+RTPRIO=${RTPRIO:-60}
+COUNT=${COUNT:-10000}
 
 boost_irq_prio() {
     local PRIO=${1:-50}
@@ -78,6 +78,7 @@ run_tests() {
     for tst in $tests; do
        boost_irq_prio 50 || true
        prepare_$tst
+       echo "----------------------"
        t
     done
 }
@@ -119,8 +120,10 @@ create_dirs_and_links() {
 }
 
 go() {
+    echo "####################"
     mhz=${MHZ:-2400 300}
     for clk in $mhz; do
+    echo "===================="
        dir=$(create_dirs_and_links `basename $0 .sh` `uname -r` $clk)
        set -x
        pushd $dir
index 757ff45815e5d0c4f9a89a796f64c29a347cf093..f0ce6673a2c28fb93a9cb28e41ce0ae1d2a1c08f 100755 (executable)
@@ -17,12 +17,12 @@ set grid
 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"
+              "lincan-1000.dat" with lp title "Lincan"
 '
 
 PLOT_CMD[1]='
 set title "Round-trip time history"
-set logscale xy
+set logscale y
 set grid
 set xlabel "Ping number"
 set ylabel "Round-trip time [{/Symbol m}s]"