]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/user.sh
Make will run tests for all types of traffic
[can-benchmark.git] / gw-tests / user.sh
index 1edfa7438dd15b55ca0aa37a1c137a3bc90dc325..a8f3498cea87f9f124f96d8d80c591f0739ed638 100755 (executable)
@@ -4,17 +4,17 @@
 
 main() {
     pid=$(sshgw 'chrt -f 90 candump -s2 -b can1 can0 & echo $!')
-    latester -d can0 -d can1 -d can2 -o -c $COUNT -l 2 -h uhist2.dat -f utime2.dat
-    latester -d can0 -d can1 -d can2 -o -c $COUNT -l 8 -h uhist8.dat -f utime8.dat
+    latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 2) -h uhist2.dat -f utime2.dat
+    latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 8) -h uhist8.dat -f utime8.dat
     sshgw kill $pid
     sshgw cangw -A -s can0 -d can1
-    latester -d can0 -d can1 -d can2 -o -c $COUNT -l 2 -h khist2.dat -f ktime2.dat
-    latester -d can0 -d can1 -d can2 -o -c $COUNT -l 8 -h khist8.dat -f ktime8.dat
+    latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 2) -h khist2.dat -f ktime2.dat
+    latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 8) -h khist8.dat -f ktime8.dat
 }
 
 plot_cmds() {
     cat <<EOF
-set title "Kernel vs. userspace GW, no modifications, no filters"
+set title "Kernel vs. userspace GW, no modifications"
 set logscale y
 set grid
 set xlabel "Time [{/Symbol m}s]"