]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/filter-sff.sh
filter-sff: Test also the last id (2047)
[can-benchmark.git] / gw-tests / filter-sff.sh
index 53383768cf3b18724a6ef25bf86a18e22e140dff..a32ea021608a56495bbc3ea5bc7edbabaa674b7c 100755 (executable)
@@ -2,7 +2,7 @@
 
 . lib.sh
 
-ids=$(seq 0 256 2047)
+ids="0 $(seq 255 256 2047)"
 
 main() {
     sshgw 'for i in `seq 0 2047`; do cangw -A -s can0 -d can1 -f $(printf %x $i):c00007ff; done'
@@ -13,7 +13,7 @@ main() {
 
 plot_cmds() {
     cat <<EOF
-set title "Single GW, no modifications, 2048 filters (one per id)"
+set title "Single GW, no modifications, 2048 filters (one per id, mask C00007FF)"
 set logscale y
 set grid
 set xlabel "Time [{/Symbol m}s]"
@@ -22,8 +22,7 @@ plot [0:1500] [1:$COUNT] \\
 EOF
     lt=1
     for i in $ids; do
-       (( i != 0)) && echo ", \\"
-       echo -n "    " \"hist-$i.dat\" with lp lt $lt title \"Message id $i\"
+       echo_plot "\"hist-$i.dat\" with lp lt $lt title \"Message id $i\""
         lt=$((lt+1))
     done
     echo