Added overload test which must be yet tuned
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 14 Jun 2009 12:21:55 +0000 (14:21 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 14 Jun 2009 12:21:55 +0000 (14:21 +0200)
tests/rtt-overload.sh [new file with mode: 0755]

diff --git a/tests/rtt-overload.sh b/tests/rtt-overload.sh
new file mode 100755 (executable)
index 0000000..7aad504
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+. _lib.sh
+
+C=100
+
+t() {
+    PID_S=`vca_canping -s $C -b -r -d $CAN1`
+    vca_canping -m $C -r -v -g $DRIVER -t 1 -d $CAN0 -w 500 -c 10
+    kill $PID_S
+}
+
+
+
+PLOT_CMD="
+set title 'RTT of highest prio message when opened $C times (`uname -r`)'
+set logscale y
+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'
+"
+